balmbees / dynamo-types

Typescript AWS DynamoDB ORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query.GlobalSecondayIndex.scan doesn’t pass IndexName

benhutchins opened this issue · comments

The scan method on the GSI query class doesn’t actually pass the IndexName property. So it actually performs a scan on the table instead of the GSI.

This seems unintentional, since a scan can performed on the table using the Query.PrimaryKey.scan method.

commented

@benhutchins thanks for the report, it's been fixed and will be automatically deployed soon.