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

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Creating a GraphQL API with Amplify

Creating a GraphQL API with Amplify

- [Instructor] Okay, so now that we've talked about AppSync and GraphQL and DynamoDB, let's add it to a project. So I'm going to add an API to my project with Amplify Add API in the terminal. I'll get prompted for options to add a GraphQL API, or REST API. I'm going to select GraphQL. Then given the option to define the model, I'm going to be given a template for a model and I can change that if I want to. And then once I'm happy with all that, I'm going to run Amplify, push to send it to AWS. And also I will be given the opportunity to generate code based on the schema that I'll then be able to pull into my project. So I'm going to go to the terminal and get this magic started. So over here in the terminal, I'm going to run, as I said, amplify add api and I will be prompted to add a GraphQL or a REST API. If I want to add a REST API, this would use DynamoDB as the backend, but it would use the API gateway as the…

Contents