When render a page, we have several fields fetched from different backend sources, and a paginated list of data.
We want to include everything in one logical query, but when fetching more pages for the paginated section, we don’t want to fetch all the initial static fields again.
My first instinct was that we could create 2 separate queries, one that fires initially with all the data, and a second one which only includes the paginated field. Or alternatively could we make use of the @include directive any time we’re fetching after the initial request?
FWIW, this is exactly what we recommend in Apollo iOS. We have a pagination library that is actually set up for this use case. You provide an initial query and another query for additional pages, along with a transform function that merges the values from the pages together.