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

fix: move importedModels key up to defineData #13943

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Sep 26, 2024

Description of changes

fix: move importedModels key up to defineData. It should be like the following (not nested under importedAmplifyDynamoDBTableMap).

export const data = defineData({
  importedAmplifyDynamoDBTableMap: { Todo: "my-todo-mapping" },
  importedModels: ["Todo"],
  schema: "TODO: Add your existing graphql schema here"
});

Issue #, if available

N/A

Description of how you validated changes

Add new unit test.

Checklist

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

@dpilch dpilch requested a review from a team as a code owner September 26, 2024 19:15
@dpilch dpilch merged commit 9bae7d4 into migrations Sep 30, 2024
4 checks passed
@dpilch dpilch deleted the fix-data-codegen branch September 30, 2024 15:08
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.

3 participants