fetchMore<TParsed> method

  1. @experimental
Future<QueryResult<TParsed>> fetchMore<TParsed>(
  1. FetchMoreOptions fetchMoreOptions, {
  2. required QueryOptions<TParsed> originalOptions,
  3. required QueryResult<TParsed> previousResult,
})
inherited

Fetch more results and then merge them with the given previousResult according to FetchMoreOptions.updateQuery.

NOTE: with the addition of strict data structure checking in v4, it is easy to make mistakes in writing updateQuery.

To mitigate this, FetchMoreOptions.partial has been provided.

Implementation

@experimental
Future<QueryResult<TParsed>> fetchMore<TParsed>(
  FetchMoreOptions fetchMoreOptions, {
  required QueryOptions<TParsed> originalOptions,
  required QueryResult<TParsed> previousResult,
}) async {
  return await fetchMoreImplementation(
    fetchMoreOptions,
    originalOptions: originalOptions,
    previousResult: previousResult,
    queryManager: queryManager,
  );
}