Closed p610 closed 9 months ago
Hi,
Unfortunately, that is the design. If you want to update a GSI, you need to provide all the components of the key so it can be correctly identified. If you don't supply all the components, the original item cannot be updated.
Describe the bug
Global index not updated if only one of 2 fields that gs is made of if passed to update function.
Maybe there are some params i'm not aware of and can amend this behavior although I still believe it should not be a default.
To Reproduce
returns
which means that gs2pk is out of sync
Expected behavior
The best would be to update gs2 despite not having
first
property passed to the update function.At min. it would be great getting an error otherwise developer is not aware that gs is out of sync.
Environment (please complete the following information):