Need to get details from hierarchy level data

Using cascade can get child category details but how can i get all root level categories which have no parents?
I tried below which is not working.

{
  querycategory {
    name
    position
    parent(filter: {name: {eq: null}}) {
      name
    }
  }
}