What is AST in graphql? -
what ast in graphql ? using graphql-js. how anything?
nothing in documentation seems explain ast is
graphql 2 things:
- a query language
- a type system
when graphql server receives query process comes in string. string must tokenized , parsed representation machine understands. representation called abstract syntax tree.
when graphql processes query, walks tree executing each part against schema.
converting raw strings ast first step of every compiler c++ chrome's javascript's vm babel.
as graphql , how helps, here video may explain in bit more detail. https://www.youtube.com/watch?v=pmwho45wmqy
Comments
Post a Comment