Skip to content

Query indexName, whereParitionKey, whereSortKey order matters #358

@danielblignaut

Description

@danielblignaut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions