Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create Local Secondary Index for AppSync Model table #3016

Open
NiharikaBaliboyna9 opened this issue Nov 9, 2024 · 3 comments
Open
Labels

Comments

@NiharikaBaliboyna9
Copy link

NiharikaBaliboyna9 commented Nov 9, 2024

Environment information

NA

Describe the feature

Currently we can only crease GSI for the data models in Amplify.


ChartOfAccount: a
    .model({
      orgId: a.id().required(),
      accountName: a.string().required(),
      accountDescription: a.string(),
      categoryName: a.string().required(),
      categoryType: a.string().required(),}) //ex: "INCOME", "EXPENSE", "ASSET", 
    .identifier(["orgId", "accountName"])
    .secondaryIndexes((index) => [index("orgId").sortKeys(["categoryName"])])
    .authorization((allow) => [allow.owner()]),
});

There is no option to create Local Secondary Index for the model. Unable to update/add using the backend.ts as the table would be already created by then and the LSI should be created with the table.

Use case

To create and use Local Secondary Index for the data models in amplify.

@aashishjaria
Copy link

Very important feature

@ykethan
Copy link
Member

ykethan commented Nov 12, 2024

Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂

@ykethan ykethan transferred this issue from aws-amplify/amplify-backend Nov 12, 2024
@AnilMaktala AnilMaktala added feature-request New feature or request and removed pending-triage labels Nov 12, 2024
@aashishjaria
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants