- Newest
- Most votes
- Most comments
Hello,
I understand that you wish to call an App sync from a Lambda function. Please follow the steps in documentation at link [1] , this will help you to perform both a query as well as a mutation from a Lambda function using Node.js (If you wish to make use of amplify).
You can use the pagination to stream the response back in multiple answerChunk. The documentation at link[2] will help you to implement pagination in app sync.
Here, for streaming we need to ensure that the Lambda function does not timeout, Kindly note that Lambda is configured with the timeout of 15 minutes [3]. The best approach here is to use the Lambda function for the mutation and for streaming the response back in answerChunks you can use app sync pagination.
Further if you have any queries please reach out to AWS Premium Support.
Thank you.
REFERENCES
[1] https://docs.amplify.aws/guides/functions/graphql-from-lambda/q/platform/ios/
[2] https://docs.amplify.aws/guides/api-graphql/graphql-pagination/q/platform/js/
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago