-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(appsync): add support for mapping DynamoDB queries #5940
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
ping |
Thanks for the heads up, @MrArnoldPalmer! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like a great addition. I think we should add integ coverage of the other KeyCondition
s. Otherwise good to go.
I wonder if we can keep building on top of this to abstract away some of the dynamo specifics. Separate discussion though.
customerDS.createResolver({ | ||
typeName: 'Query', | ||
fieldName: 'getCustomerOrders', | ||
requestMappingTemplate: MappingTemplate.dynamoDbQuery(KeyCondition.eq('id', 'id')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add coverage for the other KeyConditions we have defined. It's a bit tedious but feels like it will payoff in the long run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do! Thanks for reviewing :)
Yeah, I think that would be a good direction. The current mappings only support basic usage (e.g., |
Add support to the L2 AppSync constructs for mapping DynamoDB queries. Fixes aws#5861 Signed-off-by: Duarte Nunes <duarte@uma.ni>
7e11115
to
c92200e
Compare
Pull request has been modified.
PR updated with the remaining tests. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
Add support to the L2 AppSync constructs for mapping DynamoDB queries.
Fixes #5861
Signed-off-by: Duarte Nunes duarte@uma.ni
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license