What is AST in graphql? -


what ast in graphql ? using graphql-js. how anything?

nothing in documentation seems explain ast is

graphql 2 things:

  1. a query language
  2. 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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -