aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

Appsync GraphQL page limit #313

Closed elusivestudio closed 8 months ago

elusivestudio commented 1 year ago

‼️ Critical issue: page limit is broken. I get different results after adding limit and it strangely changes by the limit number.

These are the 3 example at the same time.

Screenshot 2023-08-02 at 16 03 46 Screenshot 2023-08-02 at 16 03 58 Screenshot 2023-08-02 at 16 04 08
sashee commented 1 year ago

If you happen to use DynamoDB for this then it might very well because of the combination of filtering along with limiting in the DB query. I wrote an article about this not long ago that looks into a scenario that returns similarly surprising results: https://advancedweb.hu/the-surprising-properties-of-dynamodb-pagination/

ATaiIsHere commented 11 months ago

The limit parameter in DynamoDB API represents the number of items that will be scanned.

If you can provide the logic of resolver, we can have better idea of what the problem might be.

onlybakam commented 8 months ago

@elusivestudio Let us know if you are still experiencing this issue