-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure mis model name mismatch cannot cause unexpected behavior
- Loading branch information
Showing
9 changed files
with
248 additions
and
34 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
'@aws-amplify/data-schema': patch | ||
--- | ||
|
||
fix prevent mis model mismatch |
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
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
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
56 changes: 56 additions & 0 deletions
56
...tion-tests/__tests__/defined-behavior/3-exhaustive/__snapshots__/mis-manipulation.ts.snap
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,56 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Manipulated MIS cannot be used to call the wrong model create an item 1`] = ` | ||
[ | ||
[ | ||
{ | ||
"authMode": undefined, | ||
"authToken": undefined, | ||
"query": "mutation($input: CreateTodoInput!) { createTodo(input: $input) { id content createdAt updatedAt } }", | ||
"variables": { | ||
"input": { | ||
"content": "My new todo", | ||
}, | ||
}, | ||
}, | ||
{}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Manipulated MIS cannot be used to call the wrong model delete an item 1`] = ` | ||
[ | ||
[ | ||
{ | ||
"authMode": undefined, | ||
"authToken": undefined, | ||
"query": "mutation($input: DeleteTodoInput!) { deleteTodo(input: $input) { id content createdAt updatedAt } }", | ||
"variables": { | ||
"input": { | ||
"id": "123123213", | ||
}, | ||
}, | ||
}, | ||
{}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Manipulated MIS cannot be used to call the wrong model update an item 1`] = ` | ||
[ | ||
[ | ||
{ | ||
"authMode": undefined, | ||
"authToken": undefined, | ||
"query": "mutation($input: UpdateTodoInput!) { updateTodo(input: $input) { id content createdAt updatedAt } }", | ||
"variables": { | ||
"input": { | ||
"content": "Updated content", | ||
"id": "some_id", | ||
}, | ||
}, | ||
}, | ||
{}, | ||
], | ||
] | ||
`; |
Oops, something went wrong.