You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
For example, I create a DynamoDB table by awsmobile-cli like this:
Hash key: OrderId (Number)
Range key: Priority (Number)
...
There is no LSI option when creating the table.
If I add index and select the same hash key, it will create a GSI.
$ awsmobile database configure
? Select from one of the choices below. Edit table from the project
? Select table to be edited my-table
? Select from one of the choices below. Add indexes
? Index name my-index-name
? Select partition key OrderId
? Select sort key CreatedAt
? Add index Yes
I also notice that I cannot select multiple range key or create index as LSI even on AWS console.
Is this a limitation of MobileHub?
Any way to create LSI for DynamoDB table for MobileHub project?
The text was updated successfully, but these errors were encountered:
ronald8192
changed the title
[Problem] How to add DynamoDB LSI ?
[Question] How to add DynamoDB LSI ?
Aug 5, 2018
For example, I create a DynamoDB table by awsmobile-cli like this:
Hash key:
OrderId
(Number)Range key:
Priority
(Number)...
There is no LSI option when creating the table.
If I add index and select the same hash key, it will create a GSI.
$
awsmobile database configure
? Select from one of the choices below.
Edit table from the project
? Select table to be edited
my-table
? Select from one of the choices below.
Add indexes
? Index name
my-index-name
? Select partition key
OrderId
? Select sort key
CreatedAt
? Add index
Yes
I also notice that I cannot select multiple range key or create index as LSI even on AWS console.
Is this a limitation of MobileHub?
Any way to create LSI for DynamoDB table for MobileHub project?
The text was updated successfully, but these errors were encountered: