Open KingNoosh opened 5 years ago
I'm having the same problem I'm unable to create a local secondary index, there's nothing about secondary indexes in the documentation and it's frustrating not fiding any information.
I'm following the example provided in this issue but I'm getting the following error
Error: No options provided for ItemIdIndex index
FYI, if you get Error: No options provided for xxx index
, then you can refer to this https://github.com/awslabs/dynamodb-data-mapper-js/issues/193#issuecomment-725719594
It also got me at the beginning i.e. we need to tell the table creation script about the indexes first.
https://github.com/awslabs/dynamodb-data-mapper-js/blob/3ffe4bfb9187cf21bf87f72212526fa72172e555/packages/dynamodb-data-mapper/src/DataMapper.ts#L1284
Hey there,
I'm trying to create a table with another index, I see the following from keys:
However the options are undefined, this means when we get to
indexOptions
, it comes up as undefined because nothing has been passed as the options parameter.Is there a workaround or a last working version?