In this lesson we’ll create a new GraphQL API using the Amplify CLI and use the Amplify GraphQL API to query data from the new API & render it in our app. We’ll also look at how to perform mutations from the client
Under componentDidMount the const is misspelled 'todoDate' in the transcript.
Hello, in the transcript got an extra parenthesis this.state.todos.map((todo, i))
After Amplify Push, getting new questions: ? Do you want to generate code for your newly created GraphQL API ? Choose the code generation language target [javascript, tuypescript, flow] ? Enter the file name pattern of graphql queries, mutations and subscriptions (src/graphql/**/*.js) ? Do you want to generate/update all possible GraphQL operations - queries, mutations and subscriptions (Y/n) ? Enter maximum statement depth [increase from default if your schema is deeply nested] (2)
After Amplify Push, getting new questions:
? Choose the code generation language target [javascript, tuypescript, flow]
? Enter the file name pattern of graphql queries, mutations and subscriptions (src/graphql/**/*.js)
? Do you want to generate/update all possible GraphQL operations - queries, mutations and subscriptions (Y/n)
? Enter maximum statement depth [increase from default if your schema is deeply nested] (2)```
++ to Ben's question
Why are the code base completely different on every exercise ? It makes it difficult to follow and does not flow naturally from one exercise to the other.
Ughh...I can't seem to get around this error:
Access to XMLHttpRequest at '<removed>/specs' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I sure don't recall deviating from the instructions at all.
Can I get any help maybe?