aws-amplify / aws-amplify/docs
How to handle errors in custom Business Logic Lambda (GraphQL API)
Open
amplify/data
p4
theme:data-custom-business-logic
- Dominant language
- MDX
- Stars
- 506
- Forks
- 1.1k
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 1
Description
Please extend the documentation at https://docs.amplify.aws/cli/graphql/custom-business-logic/ to include details of how (best) to throw (or handle) errors in the Lambda
E.g. if my custom lambda throws an application error, should I trap it and return some sort of response?
Current behaviour is that a Lambda:Unhandled error is returned with the message of the thrown error.
Is there a better solution?
Contributor guide
Assessment
This issue has not been assessed yet.