Skip to content

Commit

Permalink
Merge pull request #1315 from vangorra/typescript_def_update
Browse files Browse the repository at this point in the history
Adding updated typescript defs for refetchQueries.
  • Loading branch information
helfer authored Feb 22, 2017
2 parents 9e7c4d9 + 9ea6c51 commit 6274c98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- ...

Expand Down
6 changes: 5 additions & 1 deletion src/core/watchQueryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import {
MutationQueryReducersMap,
} from '../data/mutationResults';

import {
PureQueryOptions,
} from './types';

/**
* We can change these options to an ObservableQuery
*/
Expand Down Expand Up @@ -97,5 +101,5 @@ export interface MutationOptions {
variables?: Object;
optimisticResponse?: Object;
updateQueries?: MutationQueryReducersMap;
refetchQueries?: string[];
refetchQueries?: string[] | PureQueryOptions[];
}

0 comments on commit 6274c98

Please sign in to comment.