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
This gives the error shown above. I can list other tables that I have that do not have a 2nd ID (which becomes the Sort key) and they work fine. However trying any table structure that has the 2 Keys will not work.
input ModelIDKeyConditionInput {
eq: ID
le: ID
lt: ID
ge: ID
gt: ID
between: [ID]
beginsWith: ID
}
I've been trying to manipulate the .list() function parameters to get past the error but can't seem to do so. .get() queries work fine when supplying both PK/SK IDs, create works as well.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @Yogr, I'm going to transfer this to the api repo. They should be able to help with this issue. However, in the meantime, I noticed you are using an older beta version of @aws-amplify/backend. I'd recommend updating to the latest beta release (currently 0.13.0-beta.16) to see if that helps.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Environment information
Description
Error:
Validation error of type VariableTypeMismatch: Variable type 'ID' doesn't match expected type 'ModelIDKeyConditionInput' @ 'listChatMessages'"
I am trying to list all of the records stored in my ChatMessages table generated by Amplify gen 2 via:
I am invoking with the following code:
await client.models.ChatMessage.list()
This gives the error shown above. I can list other tables that I have that do not have a 2nd ID (which becomes the Sort key) and they work fine. However trying any table structure that has the 2 Keys will not work.
Here is what is in AppSync:
I've been trying to manipulate the .list() function parameters to get past the error but can't seem to do so. .get() queries work fine when supplying both PK/SK IDs, create works as well.
Thanks!
The text was updated successfully, but these errors were encountered: