In this lesson we’ll execute GraphQL queries using our AWS AppSync API and show how to display the returned data inside of our React application using the AWS AppSync GraphQL client.
We'll create a query string using gql
(graphql-tag
) and pass that query into a graphql
Higher-order component where we will pass the resulting data in our exisiting app.
I had to yarn add graphql and apollo-client before I could get this lesson to work
Actually, I meant to put this comment on lesson 5
App
is now a function, it would be great to refresh the tutorial
I had to downgrade to app-sync 1.7.1 to get the list to render. Looks like there's a breaking change in the latest update.
create-react-app now creates a functional component vs the class based in this video. To make this lesson work, add props as an argument to App function App(props) and remove this from this.props so that it's just props.todos.map.