-
Notifications
You must be signed in to change notification settings - Fork 76
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
AmplifyOutputs.json ignores Multiple Secondary Index Queries using the same SecondaryIndex Field #2815
AmplifyOutputs.json ignores Multiple Secondary Index Queries using the same SecondaryIndex Field #2815
Comments
Hi @ChristopherGabba, Thank you for bringing this issue to our attention. We were able to reproduce it using the schema details provided. As a result, we will be marking this as a bug for the team to further investigate. schema:
generated introspection schema:
|
This issue is now closed. Comments on closed issues are hard for our team to see. |
The fix aws-amplify/amplify-codegen#879 is pending codegen release. |
Environment information
Data packages
Description
I am trying to make multiple queries using the same
SecondaryIndex
but differentsortKeys
:But when I run
npx ampx sandbox
or I push the commit to the the backend console, theamplify_outputs.json
file just ignores the second two secondary indexes:As you can see, it only made the
listActiveUsersByFirstName
. I can confirm as well when I try to run these other two queries, I get afunction does not exist
type of error.I've tried making one secondaryIndex query like so:
But the query doesn't seem to be working:
I'm trying to get results for each category (firstname, lastname, and username) individually, not combined.
The text was updated successfully, but these errors were encountered: