Posts

Showing posts from July, 2021

Introduction to the AWS Amplify GraphQL Client

Image
 INTRODUCTION In the fast-growing GraphQL program there are several popular GraphQL clients available today includ i ng Apollo Client, URQL, and Lokka. In the process of building a more flexible operating system with AWS GraphQL hosted AWS AppSync, the AWS team has created a new GraphQL client. Because it works well with almost any GraphQL API or service, and they decided to open it. The AWS Amplify GraphQL client provides a simple API, designed to get up and running quickly with minimal configuration. The AWS Amplify GraphQL client has been released from React Amsterdam as well as the regular availability of AWS AppSync. The AWS Amplify GraphQL client supports conversions, registrations, and queries and is actively developed. We still support our AppSync Apollo SDK with advanced use cases such as temporary storage and offline support. If you are interested in those features, check out the Apollo Client for General GraphQL APIs or the AWS AppSync Apollo SDK for use with the AWS App...

Build a GraphQL API on AWS with CDK, Python, AppSync, and DynamoDB

Image
  Hi, Welcome to part 2 of this post series. In   Part 1 , we installed and created a CDK application alongside all was constructs needed to build this application. We also went ahead to write some code to initialize and use a couple of constructs. In this post, we will continue from where we left off in Part 1. Adding Resolvers. Resolvers are functions that connect fields of the graphQL schema to a data source. In our case, the data source is the DynamoDB we created. Let's begin Create Trainer Resolver Create a folder in the root directory called  resolver_functions . Within that folder, create a text file called  create_trainer  and type in the following code COPY { "version" : "2017-02-28" , "operation" : "PutItem" , "key" : { "id" : { "S" : "$util.autoId()" } }, "attributeValues" : { ...