AWS AppSync now supports JavaScript for all resolvers in GraphQL APIs
Blog
This article announces that AWS AppSync now supports JavaScript for all resolvers in GraphQL APIs, extending previous pipeline resolver support to unit resolvers.
- JavaScript resolvers now available for unit resolvers handling single data source access patterns
- Developers can mix VTL functions with JavaScript functions in pipeline resolvers
- Get started easily via AWS AppSync console with "Create API" and "design from scratch" option
- Console auto-generates resolvers and can create DynamoDB tables backing GraphQL types
- Use AppSync utility autoId() to generate unique IDs automatically in mutations
- AWS CDK projects support TypeScript, AppSync utilities, and AWS Amplify codegen
- Helper constructs automatically link resolvers to data sources based on file names
- Bundle code locally before deploying resolvers using CDK deploy command
JavaScript resolvers simplify GraphQL API development by enabling familiar JavaScript syntax for all resolver types without additional compute resources.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.