Query indexName, whereParitionKey, whereSortKey order matters
danielblignaut opened this issue · 0 comments
danielblignaut commented
Describe the bug
On a query request, you have to specify indexName before your partition or sortKey value otherwise the parition and sort key values are not assigned to the correct model key (they will be assigned to the @PartitionKey and @SortKey instead of the correct gsi key).
Whilst this is a bug, I think the correct fix is rather to just update the docs to explicitly reference this.