79098511

Date: 2024-10-17 14:20:25
Score: 2.5
Natty:
Report link

You can not use external libraries inside of AppSync's JS resolvers. Here's a list of supported runtime features: https://docs.aws.amazon.com/appsync/latest/devguide/resolver-util-reference-js.html

One way of doing this would be to create a Lambda function (where you can install dynamoose), and then use AppSync JS resolver to invoke that function. See here: https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers-js.html

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jakub Duchon