From the course: AWS and React: Creating Full-Stack Apps (2019)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Testing an AppSync GraphQL API

Testing an AppSync GraphQL API - Amazon Web Services (AWS) Tutorial

From the course: AWS and React: Creating Full-Stack Apps (2019)

Start my 1-month free trial

Testing an AppSync GraphQL API

- [Instructor] Now that we've used Amplify to create our API, we can go to AppSync and we can see that our API is listed. I can click on it and see all the details including the data source which is our DynamoDB table it created for us. If I click on the Schema, we can see the schema that it created for us with the Create, the Delete, and all the different schema aspects for our Todo items. Our Todo item is defined as an id, name and description. We can define subscriptions for this. We can run queries and mutations to manipulate our data, all that we want. We also can run queries here. Notice there's no built-in query for us and we have to log in with the User Pools 'cause we selected Cognito as our authorization. So we have to get the client ID for this. So I'm going to click on Services and go to Cognito. I'm going to click on User Pools and then we want to go into the settings to get the client ID for the web…

Contents