Querying AWS DynamoDB table in AWS AppSync Console

2021.12.31

AWS AppSync

It is a managed GraphQL service that eases app development which lets users create a flexible API to securely access, manipulate, and combine data from one or more data sources with fewer network calls. It works well with contract-first development and doesn’t need an extra process for generation API documentation. Integration with DynamoDB is much easier to use and offers the value add features

Amazon DynamoDB

An AWS Web Services database that is fully managed, serverless, key-value NoSQL database, has high-performance applications at any scale. It has the following benefits such as built-in security, continuous backups, automated multi-region replication, in-memory caching, and data export tools.

Demo

Click on create table Enter table name and primary key Click Create Adding items and data to the table Click on create API Select Import DynamoDN Table and click start Select region, table name and if you don’t have role created click on new role and click import Configure the model fields and click create Choice of your name and click create Querying DynamoDB Table from AWS AppSync Console, Querying with particular ISN Click on get books Checking for the book with the isn Hit the Play button to run the query You can add other fields along with tittle to get their information