How to use TypeScript with AppSync Lambda Resolvers

One of the great benefits of GraphQL is typing! Define your schema, and GraphQL enforces the input/output “shape” of your endpoints data.

If you are using Lambda as your AppSync resolvers with the node.js runtime, you might be using TypeScript, too. If you do, you might also be defining TS types that correspond to your schema. Doing this manually can be tedious, is prone to…