diff --git a/packages/graphql/lib/src/core/fetch_more.dart b/packages/graphql/lib/src/core/fetch_more.dart index 10c1a8fe..915c5202 100644 --- a/packages/graphql/lib/src/core/fetch_more.dart +++ b/packages/graphql/lib/src/core/fetch_more.dart @@ -34,11 +34,11 @@ Future> fetchMoreImplementation( final data = fetchMoreOptions.updateQuery( previousResult.data, fetchMoreResult.data, - )!; + ); fetchMoreResult.data = data; - if (originalOptions.fetchPolicy != FetchPolicy.noCache) { + if (originalOptions.fetchPolicy != FetchPolicy.noCache && data != null) { queryManager.attemptCacheWriteFromClient( request, data,