The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
If applicable, what version of Node.js are you using?
18
Amplify CLI Version
10.5.1
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
Describe the bug
When mocking a GraphQL API that has Conflict Detection enabled, the fields used with DataStore such as _lastChangedAt are not automatically populated when creating records. Instead we are presented with an error:
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
18
Amplify CLI Version
10.5.1
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
Describe the bug
When mocking a GraphQL API that has Conflict Detection enabled, the fields used with DataStore such as
_lastChangedAt
are not automatically populated when creating records. Instead we are presented with an error:Expected behavior
Fields are automatically created with their expected values in mock
Reproduction steps
amplify init -y
amplify add api
> GraphQL > Enable conflict detectionamplify mock api
createTodo
mutation with all fields in the selection setProject Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm: