Create an AppSync API with a direct Lambda resolver
This CDK application deploys an AppSync API and a Lambda function. The Lambda function is added as a data source for the API and the API uses it as a direct Lambda resolver.
On querying the AppSync API, AppSync invokes the Lambda function and provides default payload to your Lambda function as well as a default translation from a Lambda function's response to a GraphQL type.