When creating any part of the composite sort key for @index '<my index>', you must provide all fields for the key. Missing key: 'status'. #2622
Labels
pending-community-response
Issue is pending a response from the author or community.
pending-triage
question
Further information is requested
transferred
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.10.0
Amplify CLI Version
12.12.0
What operating system are you using?
windows 10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
When updating any part of the composite sort key for
@index
'bySellerAndCreatedAtAndStatus', you must provide all fields for the key. Missing key: 'status
'.Then when providing status (forcefully)
When updating any part of the composite sort key for
@index
'bySellerAndCreatedAtAndStatus', you must provide all fields for the key. Missing key: 'scheduledAtStart
'.Everytime i want to run a mutation on my model, I have to obviously provide the PK_SK but because the SK field
createdAt_sk
is also used in gsi, i always have to providestatus
andscheduledAtStart
even tho i dont want to update them. This is really annoying, idk if its normal behaviour or not..Expected behavior
I dont really know but i dont think it should have to provide fields that i dont want to update.
Reproduction steps
createdAt
sortkeyfield on other GSIsGet an error because you have to also provide all the fields used in other gsi that uses
createdAt
sortkey fieldProject Identifier
No response
Log output
Additional information
related to aws-amplify/amplify-cli#9666 ?
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: