aerogear / offix

GraphQL Offline Client and Server
https://offix.dev
Apache License 2.0
758 stars 45 forks source link

When using pagination in my queries with @connection directive I only get the first 1000 items from watchQuery #678

Closed cjohn001 closed 4 years ago

cjohn001 commented 4 years ago

Hello together, as mentioned in the title, I have a problem when querying larger amounts of data (>1000) using pagination. If I query more then 1000 items, it seems like the items are stored in the cache, but watchQuery only returns the first 1000 items from the cache. Is there some kind of config option how I could increase this limit?

wtrocki commented 4 years ago

Offix abstracts from pagination itself. Is your pagination not working (thus 1000 entries) or this is limit? I also checked the apollo cache with some helper and was able to get more than 1000 items. We use Apollo for all of those.

cjohn001 commented 4 years ago

Hello @wtrocki , sorry for the effort. It was indeed a bug in my pagination. I think my configuration of the cache storage was too small. I will close the issue.