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
npm start on attached repo => observe it is incorrectly showing {"allFilms":[]}
comment out keyArgs, merge, & read => observe the data coming back correctly from the cache
@apollo/client version
3.11.4
The text was updated successfully, but these errors were encountered:
cabillin
changed the title
"Cursor-based pagination" documentation
"Cursor-based pagination" documentation include invalid examples for merge & read
Sep 11, 2024
Issue Description
https://www.apollographql.com/docs/react/pagination/cursor-based/ provides merge & read functions (to optimize the cache during paging while also excluding the paging args via keyArgs) that are invalid.
The functions assume the incoming data is a collection, but it is actually a Connection.
Link to Reproduction
https://github.com/cabillin/react-apollo-issues/tree/docs_paging_invalid
Reproduction Steps
npm start
on attached repo => observe it is incorrectly showing{"allFilms":[]}
comment out keyArgs, merge, & read => observe the data coming back correctly from the cache
@apollo/client
version3.11.4
The text was updated successfully, but these errors were encountered: