Graphql API internals

Does graphql api calls get converted to graphql± calls internally and are then processed or dgraph prepares the query plan directly?
To what extent are query plans cached? Would be awesome if you could direct me to a documentation on the deep dive of all of it, including how the graphql AST is processed to prepare the query plan.

Hi @pranaypratyush,

I’m so sorry that no one’s replied to you. There’s currently no documentation yet. However, if you are comfortable with code, the code can be found here: dgraph/graphql/resolve at master · dgraph-io/dgraph · GitHub.

At this point in time I don’t believe we cache the query plan.

This is probably the answer to this 1 year old question of mine. Marking it for others who stumble upon.

1 Like