AWS AppSync facilitates the creation and handling of serverless GraphQL and pub/sub APIs. GraphQL APIs pull data from multiple sources using a unified endpoint, while pub/sub APIs help share data in real time using web socket connections without needing servers.
In this Cloud Lab, you’ll create GraphQL APIs in three ways. You’ll create the GraphQL API and backend DynamoDB table during the creation, explore the schema, utilize the query editor, and execute the GraphQL mutation and query in the editor. Subsequently, you’ll create the GraphQL API using the pre-built data source DynamoDB table and execute the GraphQL mutation and query in the editor. Then, you’ll use the blank GraphQL API to design the schema, GraphQL mutation, and queries. You’ll build a DynamoDB table, add some data, and attach it as a data source to the GraphQL API. Moreover, you’ll add the resolvers by configuring the request and response mapping templates. You’ll test this API in the GraphQL query editor and an API testing widget. Finally, you’ll integrate the GraphQL API into a functional React application.
By the end of this Cloud Lab, you’ll have hands-on experience in managing GraphQL APIs using AWS AppSync and connecting them to front-end applications.
The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab: