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.

How to DynamoDB data CRUD in your React app

How to DynamoDB data CRUD in your React app - Amazon Web Services (AWS) Tutorial

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

Start my 1-month free trial

How to DynamoDB data CRUD in your React app

(upbeat music) - [Instructor] So let's go over this last challenge. So the first thing we want to do is run a query in the AppSync queries area with a filter, something like matching the name. And then once we get that working, we want to run that same query in our React code. So first, let's go to AppSync. So I'm in AppSync, I'm in the Queries area. I'm going to close this area over on the left for more space and I'm going to delete all this placeholder code. I'm logged in as beartest to my user pool so now we can run the query on the DB table. So I'm going to start by typing query and name it AllBear and then open, close curly brace. I'm going to open up the docs for some help and I can click on Query for the different queries. There's listTodos. That's what we want to call this, listTodos. We notice that takes a filter and returns a ModelTodoConnection, so I'm going to see what it's returning and it looks like…

Contents