DQL from GraphQL

Hey @Ignacio_Horrillo,

Sounds like you would like to see how Dgraph converts input GraphQL to the DQL it ultimately uses to query/mutate the graph, right?

If so, unfortunately there’s no exposed API for that—but you can rework the code in graphql/resolve/query_test.go to do just that. Using that code as an example, you could create a simple command-line tool to output DQL from input GraphQL – I did that very thing a few years ago. If you’re fluent in GraphQL, it’s a great way to learn DQL actually!