diff --git a/index.js.flow b/index.js.flow index 34bc21b1d8..2810bb92b7 100644 --- a/index.js.flow +++ b/index.js.flow @@ -8,6 +8,8 @@ import type { UpdateQueryOptions, FetchMoreQueryOptions, SubscribeToMoreOptions, + PureQueryOptions, + MutationUpdaterFn, } from "apollo-client"; import type { Store } from "redux"; import type { DocumentNode, VariableDefinitionNode } from "graphql"; @@ -49,6 +51,8 @@ declare module "react-apollo" { variables?: Object, optimisticResponse?: Object, updateQueries?: MutationQueryReducersMap, + refetchQueries?: string[] | PureQueryOptions[]; + update?: MutationUpdaterFn; } declare export interface QueryOpts { diff --git a/src/graphql.tsx b/src/graphql.tsx index 884c86a649..a522ac5ae8 100644 --- a/src/graphql.tsx +++ b/src/graphql.tsx @@ -27,6 +27,8 @@ import ApolloClient, { FetchMoreQueryOptions, SubscribeToMoreOptions, } from 'apollo-client'; +import { PureQueryOptions } from 'apollo-client/core/types'; +import { MutationUpdaterFn } from 'apollo-client/core/watchQueryOptions'; import { ExecutionResult, @@ -39,6 +41,8 @@ export declare interface MutationOpts { variables?: Object; optimisticResponse?: Object; updateQueries?: MutationQueryReducersMap; + refetchQueries?: string[] | PureQueryOptions[]; + update?: MutationUpdaterFn; client?: ApolloClient; }