Dynamodb use begin with query on primary key

392 Views Asked by At

I have the primary key as "id" STRING "123456", I want to use (begin_with) query on this primary key , I sit possible ?

1

There are 1 best solutions below

1
On

No, you can't use begin_with on the partition key. The workaround is to create a GSI and query that using begin_with.