-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graphql-transformer-core): fix gsi mutate san check (#6095)
* fix(graphql-transformer-core): fix gsi mutate san check fix gsi cant mutate multiple gsi to only look for gsi changes and not ks or attr changes re #6013 * test(amplify-e2e-tests): add gsi san check e2e add san check e2e to test adding an existing hash key also being used as a range key
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/amplify-e2e-tests/schemas/migrations_key/four_gsi_model_schema.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type Task | ||
@model | ||
@key(name: "gsi0", fields: ["name"]) | ||
@key(name: "gsi1", fields: ["taskID", "createdAt"]) | ||
@key(name: "gsi3", fields: ["name", "taskID"]) | ||
@key(name: "gsi2", fields: ["version"]) { | ||
id: ID! | ||
taskID: ID! | ||
name: String! | ||
version: String! | ||
createdAt: AWSDateTime | ||
updatedAt: AWSDateTime | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/amplify-e2e-tests/schemas/migrations_key/three_gsi_model_schema.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
type Task | ||
@model | ||
@key(name: "gsi0", fields: ["name"]) | ||
@key(name: "gsi1", fields: ["taskID", "createdAt"]) | ||
@key(name: "gsi2", fields: ["version"]) { | ||
id: ID! | ||
taskID: ID! | ||
name: String! | ||
version: String! | ||
createdAt: AWSDateTime | ||
updatedAt: AWSDateTime | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters