awslabs / aws-mobile-appsync-sdk-js

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

Node.js example has been removed from documentation #690

Closed davthedev closed 2 years ago

davthedev commented 2 years ago

I am using AppSync from a Node.js environment in Lambda.

There was a Node.js example in the documentation until recently. I used it to get started. Are we supposed to use a different approach with those changes? Is the use of this SDK discouraged from such environments now?

david-mcafee commented 2 years ago

Hi @davthedev! Using the AppSync SDK in Node is not a recommended approach.

The suggested approaches would instead be: https://docs.amplify.aws/guides/functions/graphql-from-lambda/q/platform/js/ https://docs.amplify.aws/guides/functions/appsync-operations-to-lambda-layer/q/platform/js/

Let me know if there's anything else I can do to help! Thanks!

david-mcafee commented 2 years ago

Closing this issue. @davthedev please reopen if you need further help, thanks!