aws-amplify / aws-amplify/docs

How to handle errors in custom Business Logic Lambda (GraphQL API)

Open
#4,497 0 comments 0 reactions 1 assignee Claimed by @AnilMaktala View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.