diff --git a/CHANGELOG.md b/CHANGELOG.md index 34ab6e71950..b4cfbb1a8f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Expect active development and potentially significant breaking changes in the `0 ### vNEXT - Prefer stale data over partial data in cases where a user would previously get an error. [PR #1306](https://github.com/apollographql/apollo-client/pull/1306) +- Update TypeScript `MutationOptions` definition with the new object type available in `refetchQueries`. [PR #1315](https://github.com/apollographql/apollo-client/pull/1315) - Add `fetchMore` network status to enable loading information for `fetchMore` queries. [PR #1305](https://github.com/apollographql/apollo-client/pull/1305) - ... diff --git a/src/core/watchQueryOptions.ts b/src/core/watchQueryOptions.ts index b3ef0fdaf7d..1290150dfc2 100644 --- a/src/core/watchQueryOptions.ts +++ b/src/core/watchQueryOptions.ts @@ -8,6 +8,10 @@ import { MutationQueryReducersMap, } from '../data/mutationResults'; +import { + PureQueryOptions, +} from './types'; + /** * We can change these options to an ObservableQuery */ @@ -97,5 +101,5 @@ export interface MutationOptions { variables?: Object; optimisticResponse?: Object; updateQueries?: MutationQueryReducersMap; - refetchQueries?: string[]; + refetchQueries?: string[] | PureQueryOptions[]; }