-
Notifications
You must be signed in to change notification settings - Fork 822
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
Cannot add createdAt in @key fields without making it available as part of mutation #4362
Comments
+1 Same for ID |
Found this issue to be duplicate of #1657 |
@darshannahar we have a PR linked above closing it as it is a duplicate |
This fix is released in Amplify CLI v4.21.1 |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
With @model directive createdAt is an autogenerated column in DynamoDB. I want to use it as a sort key. But I do not want to make it available in the mutation input. But amplify forces me to add createdAt as a part of the type and thus makes it available in mutation input.
Amplify CLI Version
4.20.0
To Reproduce
Graphql schema of below type won't be accepted:
Expected behavior
Should allow auto-added columns like createdAt, updatedAt to be part of key
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: