Skip to content
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

Get LIST operations working RDS #1240

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

marcvberg
Copy link
Contributor

Fix for timestamp fields in mysql, map correctly to AWSDateTime in AppSync

Description of changes

Fixes issues with the input signature matching when calling list on lambda
Also updates field mapping for generating schema from RDS so MySQL timestamp is correctly mapped to AWSDateTime scalar type

CDK / CloudFormation Parameters Changed

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Any CDK or CloudFormation parameter changes are called out explicitly

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Fix for timestamp fields in mysql, map correctly to AWSDateTime in AppSync
@marcvberg marcvberg requested a review from a team as a code owner February 9, 2023 18:25
@sundersc sundersc self-requested a review February 9, 2023 20:08
const query = (await this.getClient())(request.table).select().offset(nextOffset).limit(limit);

this.addSortConditions(query, request);
const result = await query.returning('*');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is returning supported in MySQL? I remember getting an error with mutation queries.

@marcvberg marcvberg merged commit 7b0aa86 into feature/rds-support Feb 9, 2023
@marcvberg marcvberg deleted the list-rds-fix branch February 9, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants