

Resolvers: They define query mapping templates and response templates for each field defined in the schema.Schema: As we said before, it will help us to define basic types and operations to retrieve and save data.It is important to know AppSync basic components: AWS Appsync + Serverless FrameworkĪppSync is a serverless service managed by AWS it is GraphQL layer that will help us to develop our API smoothly. They are basically functions that are in charge of obtaining data for each field defined in the schema.

Resolvers implement APIs and describe the server’s behavior. It also includes entry parameters and possible responses. Schemas determine APIs capacity and define three basic operations: query, mutation, subscription. Declarative and self-documenting style, thanks to its strongly typed schemas.Efficiency in data loading, improving bandwidth use.Customers can specify exactly the structure of the data that will be served.GraphQL is a data query language for APIs, the essential idea is to make the API available through a single endpoint, instead of accessing several endpoints, as it is currently done with REST.Īmong the advantages of GraphQL we can list the following: We will use Amplify+React JS framework, and we will fit our API with more features by using subscriptions for a case of real-time use. In the second part, we will create a client-side application to consume the API. We will design a simple API from scratch, and we will deploy it using AWS AppSync and Serverless Framework. In this article, we will address basic concepts of GraphQL. So if you want to learn, read carefully.įirst, you want to know that the information will be divided in two parts:
