Need to get details from hierarchy level data

queryCategory(filter: { not: { has: [parent] } })

I’d recommend taking the GraphQL tour if you haven’t already, covers all this and more: Welcome | Graphqlintro | Dgraph Tour