Open
Description
In the documentation regarding pagination, it guides the user to use updateQuery
. However, in ApolloClient v3 this is deprecated with a warning that it will be removed in the next major version.
https://v4.apollo.vuejs.org/guide-composable/pagination.html
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.
The field policy system handles pagination more effectively than a
hand-written updateQuery function, and you only need to define the policy
once, rather than every time you call fetchMore.