-
Notifications
You must be signed in to change notification settings - Fork 79
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
createdAt, updatedAt and id should not be required on inputs / mutations #346
Comments
Hello @malcomm |
Should also consider this field: |
This is aws-amplify/amplify-cli#1657. That's the reason I made https://github.com/hirochachacha/graphql-auto-transformer. @malcomm Perhaps, it might help you as a temporary solution. |
Note: This is a blocker.
Describe the bug
Given the following sample schema:
In order to create/update a Foo, I am required to supply an
updatedAt
:createAt
andupdatedAt
should not be required. I'm OK with them being optional, but I can see an argument for them to be treated as special and not messed with at all.Amplify CLI Version
4.13.1
To Reproduce
Create a model with above primary index with a sort key.
Expected behavior
createAt
andupdatedAt
should not be required.Additional context
aws-amplify/amplify-cli#401
aws-amplify/amplify-cli#3347
The text was updated successfully, but these errors were encountered: