Write Reusable Code for AppSync JavaScript Resolvers
Introduction
AWS AppSync is a fully managed service that allows developers to build scalable and performant GraphQL APIs. It is also serverless, meaning that you will only pay for what you use.
AWS recently introduced support for JavaScript resolvers...
blog.graphbolt.dev7 min read
Luiz Carlos Rodrigues
That´s the perfect article. Really helpfull. I have a situation where I have an API that have different resolvers and functions and i want to reuse code inside different functions. I also have the build and deploy automated with Azure devops. When i use esbuild I understood that I need to bundle file per file, when you have 10 different functions that you need to bundle with reused code how would you approach that.
example:
/functions/getPolicy.js /functions/getAccounts.js /functions/GetRoles.js /helpers/log.js /resolvers/default.js
the link between the resolver and functions are make on the cloudformation file