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
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I have a news app, which is receiving information from a web page with wordpress, for this I am using apollo client, v^3.5.8 (latest) my problem lies in the pagination of my app, there is not much documentation by apollo about this since I am using react native and when I integrate the code I get a warning like the following:
The updateQuery callback for fetchMore is deprecated, and will be removed in the next major version of Apollo Client.
Please convert updateQuery functions to field policies with appropriate read and merge functions, or use/adapt a helper function (such as concatPagination, offsetLimitPagination, or relayStylePagination) from @apollo/client/utilities.
and another warning like this:
Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
I have looked for information on how to do it and it tells me an option with offset but it tells me that it does not recognize this variable in graphql
Could someone tell me how to use offset and limit correctly or an updated example of how it works
I leave my code below in case my code has any errors:
I have a news app, which is receiving information from a web page with wordpress, for this I am using apollo client, v^3.5.8 (latest) my problem lies in the pagination of my app, there is not much documentation by apollo about this since I am using react native and when I integrate the code I get a warning like the following:
and another warning like this:
I have looked for information on how to do it and it tells me an option with offset but it tells me that it does not recognize this variable in graphql
Could someone tell me how to use offset and limit correctly or an updated example of how it works
I leave my code below in case my code has any errors:
I’m new to apollo and if someone knows another simpler or better documented way, it would be a great help too.
The text was updated successfully, but these errors were encountered: