Skip to content

Add support for DynamoDB queries in AppSync mapping templates #5861

@duarten

Description

@duarten

AppSync L2 constructs are missing some features which currently have to be hand-coded, namely support for DynamoDB queries.

This entails support for the query key conditions, as well as indexes and filters. We can (and should) start with the basics, with is support for key conditions.

Use Case

To avoid hand-coding AppSync resolvers which issue a DynamoDB query.

Proposed Solution

A possible API is:

${MappingTemplate.dynamoDbQuery(
  KeyCondition.eq("user", "user").and(
    KeyCondition.beginsWith("title", "startStr"))).renderTemplate()

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Labels

@aws-cdk/aws-appsyncRelated to AWS AppSyncfeature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions