When creating a type with a sort key on the id field, codegen is making id required #639
Labels
bug
Something isn't working
p2
transferred
Issue has been transferred from another Amplify repository
Amplify CLI Version
12.1.1
Question
When creating a type in schema.graphql like this
codegen creates a type like this:
Which allows me to do:
The ID is not required.
But if I add a sort key to the primary key like this:
The generated type is:
And when I try to do:
It's requiring that I specify the ID myself.
Is this a bug or am I misusing the @primarayKey and sortKeyFields directives?
The text was updated successfully, but these errors were encountered: