withFetchMoreOptions method

QueryOptions<TParsed> withFetchMoreOptions(
  1. FetchMoreOptions fetchMoreOptions
)

Implementation

QueryOptions<TParsed> withFetchMoreOptions(
  FetchMoreOptions fetchMoreOptions,
) =>
    QueryOptions<TParsed>(
      document: fetchMoreOptions.document ?? document,
      operationName: operationName,
      fetchPolicy: FetchPolicy.noCache,
      errorPolicy: errorPolicy,
      parserFn: parserFn,
      context: context,
      variables: {
        ...variables,
        ...fetchMoreOptions.variables,
      },
    );