awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
919 stars 266 forks source link

Aws Appsync #626

Open usmanbinnaeem opened 3 years ago

usmanbinnaeem commented 3 years ago

Hi, Hope you are doing well, I a getting this error can any body help. AppSync graphql delete mutation always returns null and does not delete.

{ "data": { "deleteNote": null } }

type Mutation { deleteNote(noteID: String!): String }

lambdaDs.createResolver({ typeName: "Mutation", fieldName: "deleteNote", });

PatrykMilewski commented 1 year ago

It means that the implementation of your endpoint is most probably broken. If it's the lambda then simply check logs, if it's VTL resolver or something else, debug it accordingly