From the course: AWS and React: Creating Full-Stack Apps
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Create and test an AppSync API - Amazon Web Services (AWS) Tutorial
From the course: AWS and React: Creating Full-Stack Apps
Solution: Create and test an AppSync API
(upbeat music) - [Instructor] Okay, so I hope you did great on that challenge, I bet you did. We already went over creating a new to-do in the previous videos, but now I want to go over doing an update and a delete of an item. So I'm going to go back to the AppSync console, and I'm going to comment out my create to-do item. Then I'm going to create a new mutation for update to-do. So this is going to take a update to-do, and so I can start typing that. and I can look at the docs to see what that takes. So if I go back to mutation, I see update to-do, it takes an input with an update to-do input with an ID name and string. So to update a single to-do, I certainly need to specify which to-do it is, and I do that with the ID, and I can get that out of this table here. So I can just copy one of these IDs. This is for washing the dogs. I'm going to copy that ID and go back to my AppSync console. So this is going to take a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.