How Execution Works in GraphQL
- Parsing: The query string is then represented by an abstract syntax trees (AST).
- Validation: The query constructed in the AST is checked and validated against the schema to make sure that it is in the proper format.
- Execution: The validated query is then used to send back to the resolvers in order to request the desired information.
Execution in GraphQL
GraphQL is an application layer for querying and mutating data in APIs built on the concept of a type system that you define for the data with which your application is built. GraphQL API differs from the traditional REST API as it makes client’s queries efficient and flexible allowing them to ask for the exact data they need. In this article, we will learn Execution in GraphQL with their working in details.