Printing gql+- queries with AsString produces bad query for certain query root functions

I can see what you mean: dgraph/graphquery.go at master · dgraph-io/dgraph · GitHub does not have an exhaustive switch case.

I will put in a PR later on this enhancement.

However, I’m curious as to what your application may be that you are reflecting upon the parser structures and then getting the query back again.