Skip to content

Commit 3e4beaa

Browse files
authored
Deprecate partial and ensure its correctness. Fix type of data in ApolloQueryResult (#12333)
1 parent 0429fb9 commit 3e4beaa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+950
-380
lines changed

.api-reports/api-report-core.api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ export interface ApolloPayloadResult<TData = Record<string, any>, TExtensions =
260260
// @public (undocumented)
261261
export interface ApolloQueryResult<T> {
262262
// (undocumented)
263-
data: T;
263+
data: T | undefined;
264264
error?: ApolloError;
265265
errors?: ReadonlyArray<GraphQLFormattedError>;
266266
// (undocumented)
267267
loading: boolean;
268268
// (undocumented)
269269
networkStatus: NetworkStatus;
270-
// (undocumented)
271-
partial?: boolean;
270+
// @deprecated
271+
partial: boolean;
272272
}
273273

274274
// @public (undocumented)

.api-reports/api-report-react.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ interface ApolloProviderProps<TCache> {
328328
// @public (undocumented)
329329
interface ApolloQueryResult<T> {
330330
// (undocumented)
331-
data: T;
331+
data: T | undefined;
332332
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
333333
error?: ApolloError;
334334
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -338,8 +338,8 @@ interface ApolloQueryResult<T> {
338338
//
339339
// (undocumented)
340340
networkStatus: NetworkStatus;
341-
// (undocumented)
342-
partial?: boolean;
341+
// @deprecated
342+
partial: boolean;
343343
}
344344

345345
// @public
@@ -2519,8 +2519,8 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
25192519
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
25202520
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
25212521
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
2522-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2523-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
2522+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2523+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
25242524
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
25252525
// src/react/hooks/useBackgroundQuery.ts:38:3 - (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
25262526
// src/react/hooks/useBackgroundQuery.ts:54:3 - (ae-forgotten-export) The symbol "FetchMoreFunction" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_context.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export interface ApolloProviderProps<TCache> {
324324
// @public (undocumented)
325325
interface ApolloQueryResult<T> {
326326
// (undocumented)
327-
data: T;
327+
data: T | undefined;
328328
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
329329
error?: ApolloError;
330330
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -334,8 +334,8 @@ interface ApolloQueryResult<T> {
334334
//
335335
// (undocumented)
336336
networkStatus: NetworkStatus;
337-
// (undocumented)
338-
partial?: boolean;
337+
// @deprecated
338+
partial: boolean;
339339
}
340340

341341
// @public
@@ -1921,8 +1921,8 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
19211921
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
19221922
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
19231923
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
1924-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1925-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
1924+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1925+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
19261926
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
19271927

19281928
// (No @packageDocumentation comment for this package)

.api-reports/api-report-react_hooks.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ApolloLink {
291291
// @public (undocumented)
292292
interface ApolloQueryResult<T> {
293293
// (undocumented)
294-
data: T;
294+
data: T | undefined;
295295
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
296296
error?: ApolloError;
297297
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -301,8 +301,8 @@ interface ApolloQueryResult<T> {
301301
//
302302
// (undocumented)
303303
networkStatus: NetworkStatus;
304-
// (undocumented)
305-
partial?: boolean;
304+
// @deprecated
305+
partial: boolean;
306306
}
307307

308308
// @public
@@ -2346,8 +2346,8 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
23462346
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
23472347
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
23482348
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
2349-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2350-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
2349+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2350+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
23512351
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
23522352
// src/react/hooks/useBackgroundQuery.ts:38:3 - (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
23532353
// src/react/hooks/useBackgroundQuery.ts:54:3 - (ae-forgotten-export) The symbol "FetchMoreFunction" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_internal.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ApolloLink {
291291
// @public (undocumented)
292292
interface ApolloQueryResult<T> {
293293
// (undocumented)
294-
data: T;
294+
data: T | undefined;
295295
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
296296
error?: ApolloError;
297297
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -301,8 +301,8 @@ interface ApolloQueryResult<T> {
301301
//
302302
// (undocumented)
303303
networkStatus: NetworkStatus;
304-
// (undocumented)
305-
partial?: boolean;
304+
// @deprecated
305+
partial: boolean;
306306
}
307307

308308
// Warning: (ae-forgotten-export) The symbol "WrappedQueryRef" needs to be exported by the entry point index.d.ts
@@ -2409,8 +2409,8 @@ export function wrapQueryRef<TData, TVariables extends OperationVariables>(inter
24092409
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
24102410
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
24112411
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
2412-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2413-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
2412+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2413+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
24142414
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
24152415
// src/react/hooks/useBackgroundQuery.ts:38:3 - (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
24162416
// src/react/hooks/useBackgroundQuery.ts:54:3 - (ae-forgotten-export) The symbol "FetchMoreFunction" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_ssr.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class ApolloLink {
292292
// @public (undocumented)
293293
interface ApolloQueryResult<T> {
294294
// (undocumented)
295-
data: T;
295+
data: T | undefined;
296296
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
297297
error?: ApolloError;
298298
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -302,8 +302,8 @@ interface ApolloQueryResult<T> {
302302
//
303303
// (undocumented)
304304
networkStatus: NetworkStatus;
305-
// (undocumented)
306-
partial?: boolean;
305+
// @deprecated
306+
partial: boolean;
307307
}
308308

309309
// @public
@@ -1909,8 +1909,8 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
19091909
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
19101910
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
19111911
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
1912-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1913-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
1912+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1913+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
19141914
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
19151915

19161916
// (No @packageDocumentation comment for this package)

.api-reports/api-report-testing.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ApolloLink {
291291
// @public (undocumented)
292292
interface ApolloQueryResult<T> {
293293
// (undocumented)
294-
data: T;
294+
data: T | undefined;
295295
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
296296
error?: ApolloError;
297297
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -301,8 +301,8 @@ interface ApolloQueryResult<T> {
301301
//
302302
// (undocumented)
303303
networkStatus: NetworkStatus;
304-
// (undocumented)
305-
partial?: boolean;
304+
// @deprecated
305+
partial: boolean;
306306
}
307307

308308
// @public
@@ -1924,8 +1924,8 @@ export function withWarningSpy<TArgs extends any[], TResult>(it: (...args: TArgs
19241924
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
19251925
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
19261926
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
1927-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1928-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
1927+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1928+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
19291929
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
19301930

19311931
// (No @packageDocumentation comment for this package)

.api-reports/api-report-testing_core.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ApolloLink {
291291
// @public (undocumented)
292292
interface ApolloQueryResult<T> {
293293
// (undocumented)
294-
data: T;
294+
data: T | undefined;
295295
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
296296
error?: ApolloError;
297297
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -301,8 +301,8 @@ interface ApolloQueryResult<T> {
301301
//
302302
// (undocumented)
303303
networkStatus: NetworkStatus;
304-
// (undocumented)
305-
partial?: boolean;
304+
// @deprecated
305+
partial: boolean;
306306
}
307307

308308
// @public
@@ -1924,8 +1924,8 @@ export function withWarningSpy<TArgs extends any[], TResult>(it: (...args: TArgs
19241924
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
19251925
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
19261926
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
1927-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1928-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
1927+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1928+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
19291929
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
19301930

19311931
// (No @packageDocumentation comment for this package)

.api-reports/api-report-testing_experimental.api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ interface TestSchemaOptions {
7979
// Warnings were encountered during analysis:
8080
//
8181
// src/core/LocalState.ts:46:5 - (ae-forgotten-export) The symbol "FragmentMap" needs to be exported by the entry point index.d.ts
82-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
82+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
8383
// src/testing/experimental/createTestSchema.ts:10:23 - (ae-forgotten-export) The symbol "Resolvers" needs to be exported by the entry point index.d.ts
8484

8585
// (No @packageDocumentation comment for this package)

.api-reports/api-report-testing_react.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class ApolloLink {
292292
// @public (undocumented)
293293
interface ApolloQueryResult<T> {
294294
// (undocumented)
295-
data: T;
295+
data: T | undefined;
296296
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
297297
error?: ApolloError;
298298
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -302,8 +302,8 @@ interface ApolloQueryResult<T> {
302302
//
303303
// (undocumented)
304304
networkStatus: NetworkStatus;
305-
// (undocumented)
306-
partial?: boolean;
305+
// @deprecated
306+
partial: boolean;
307307
}
308308

309309
// @public
@@ -1873,8 +1873,8 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
18731873
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
18741874
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
18751875
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
1876-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1877-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
1876+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
1877+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
18781878
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
18791879

18801880
// (No @packageDocumentation comment for this package)

.api-reports/api-report-utilities.api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ interface ApolloPayloadResult<TData = Record<string, any>, TExtensions = Record<
317317
// @public (undocumented)
318318
interface ApolloQueryResult<T> {
319319
// (undocumented)
320-
data: T;
320+
data: T | undefined;
321321
// Warning: (ae-forgotten-export) The symbol "ApolloError" needs to be exported by the entry point index.d.ts
322322
error?: ApolloError;
323323
errors?: ReadonlyArray<GraphQLFormattedError>;
@@ -327,8 +327,8 @@ interface ApolloQueryResult<T> {
327327
//
328328
// (undocumented)
329329
networkStatus: NetworkStatus;
330-
// (undocumented)
331-
partial?: boolean;
330+
// @deprecated
331+
partial: boolean;
332332
}
333333

334334
// @public (undocumented)
@@ -2884,8 +2884,8 @@ interface WriteContext extends ReadMergeModifyContext {
28842884
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
28852885
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
28862886
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
2887-
// src/core/types.ts:175:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2888-
// src/core/types.ts:204:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
2887+
// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
2888+
// src/core/types.ts:207:5 - (ae-forgotten-export) The symbol "Resolver" needs to be exported by the entry point index.d.ts
28892889
// src/core/watchQueryOptions.ts:271:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
28902890
// src/utilities/graphql/storeUtils.ts:226:12 - (ae-forgotten-export) The symbol "storeKeyNameStringify" needs to be exported by the entry point index.d.ts
28912891
// src/utilities/policies/pagination.ts:76:3 - (ae-forgotten-export) The symbol "TRelayEdge" needs to be exported by the entry point index.d.ts

.api-reports/api-report.api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ export interface ApolloPayloadResult<TData = Record<string, any>, TExtensions =
260260
// @public (undocumented)
261261
export interface ApolloQueryResult<T> {
262262
// (undocumented)
263-
data: T;
263+
data: T | undefined;
264264
error?: ApolloError;
265265
errors?: ReadonlyArray<GraphQLFormattedError>;
266266
// (undocumented)
267267
loading: boolean;
268268
// (undocumented)
269269
networkStatus: NetworkStatus;
270-
// (undocumented)
271-
partial?: boolean;
270+
// @deprecated
271+
partial: boolean;
272272
}
273273

274274
// @public (undocumented)

.changeset/rich-kids-carry.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@apollo/client": major
3+
---
4+
5+
Fix type of `data` property on `ApolloQueryResult`. Previously this field was non-optional, non-null `TData`, however at runtime this value could be set to `undefined`. This field is now reported as `TData | undefined`.
6+
7+
This will affect you in a handful of places:
8+
- The `data` property emitted from the result passed to the `next` callback from `client.watchQuery`
9+
- Fetch-based APIs that return an `ApolloQueryResult` type such as `observableQuery.refetch`, `observableQuery.fetchMore`, etc.

.changeset/rude-fans-study.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": minor
3+
---
4+
5+
Deprecate the `partial` flag on `ApolloQueryResult` and make it a non-optional property. Previously `partial` was only set conditionally if the result emitted was partial. This value is now available with all results that return an `ApolloQueryResult`.

0 commit comments

Comments
 (0)