Coder Social home page Coder Social logo

dabit3 / react-appsync-graphql-recipe-app Goto Github PK

View Code? Open in Web Editor NEW
70.0 3.0 16.0 127 KB

Example application using React + AWS AppSync + GraphQL

HTML 9.91% JavaScript 87.35% CSS 2.74%
graphql aws-appsync appsync react javascript serverless-graphql

react-appsync-graphql-recipe-app's Issues

compose is not defined

I get an error about a missing compose function from Recipes.js. Looks like just removing that function gets things to build and run and more closely matches the article.

Missing Field Name - After remote create

After running createRecipe in the AWS console, the web UI fails to rerender with an updated list. Instead, a warning is flagged in the console and nothing is rendered (blank/empty). On refresh, each recipe is listed, including the newly created recipe, as they should be.

Here is the console output:

Missing field instructions in {
  "id": "new_id",
  "__typename": "Recipe"
}

Stack:

screen shot 2018-04-06 at 4 08 27 pm

DynamoDB:AmazonDynamoDBException

I am following this link https://tylermcginnis.com/building-serverless-react-graphql-apps-with-aws-appsync/ and completed upto my request part.

Request:
query listRecipes { listRecipes { items { id name instructions ingredients } } }
Error:
{ "data": { "listRecipes": { "items": [ null ] } }, "errors": [ { "path": [ "listRecipes", "items", 0, "ingredients" ], "data": null, "errorType": "DynamoDB:AmazonDynamoDBException", "errorInfo": null, "locations": [ { "line": 7, "column": 7, "sourceName": null } ], "message": "The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: VV5MALU6PKQM3L0Q3UF937Q2LJVV4KQNSO5AEMVJF66Q9ASUAAJG)" }, { "path": [ "listRecipes", "items", 0, "name" ], "data": null, "errorType": "DynamoDB:AmazonDynamoDBException", "errorInfo": null, "locations": [ { "line": 5, "column": 7, "sourceName": null } ], "message": "The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: EIOBAUHUARVV0VTF5MI7SR8HJ3VV4KQNSO5AEMVJF66Q9ASUAAJG)" }, { "path": [ "listRecipes", "items", 0, "instructions" ], "data": null, "errorType": "DynamoDB:AmazonDynamoDBException", "errorInfo": null, "locations": [ { "line": 6, "column": 7, "sourceName": null } ], "message": "The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: NBTF9ANE157BIL171QD2ATQIJFVV4KQNSO5AEMVJF66Q9ASUAAJG)" } ] }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.