thanks for advance for whoever knows the cause.
So this is rather strange behavior, I’m left cluless.
I have a table that store the posts a user liked, the table is created with Amplify Gen 2 scheme like below.
As you can see the table is uniquely defined by two keys to make dynamodb happy.
I’m querying this table with the graphql query below:
pretty standard query using primary key.
Now the strange behavior is this:
- I have one userId which I query perfectly without issue, but for any other userIds, I can query without the
limit
field, but if alimit
field is supplied I got empty returns.
I suspect that this has something to do with the identifier field in my scheme but I’m not sure.
Any help is grealy appreciated!
Expect all userIds to behave correctly, but the reality is only one userId is functioning, however all userId works if limit
is removed.