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.

Creating a GraphQL API with Amplify

Creating a GraphQL API with Amplify - Amazon Web Services (AWS) Tutorial

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

Start my 1-month free trial

Creating a GraphQL API with Amplify

- [Instructor] So hopefully you have a sense of what's going on behind the scenes with AppSync and DynamoDB. Let's create our version of it using Amplify in the terminal. So I'm going to go back to the terminal, I'm going to go to my tab where I'm in my project directory, and I'm going to run amplify add API, and it's going to give me some options. So we're going to use a GraphQL API, that uses AppSync. But you can do a REST API that uses API Gateway. That's one of the great things about Amplify, is it uses a lot of tools, but it asks you the questions about what you really care about. So we're going to say GraphQL, and we're going to give it a name, I'm just going to give it Todo, I like using defaults, and we're going to use the Amazon Cognito User Pool for our authorization. This means users have to be logged in to get access to the data using this API. Do we have an annotated GraphQL schema? No, notice the default…

Contents