Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Missing properties in MutationOpts (fix for #750) #770

Merged
merged 3 commits into from
Jul 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -49,6 +51,8 @@ declare module "react-apollo" {
variables?: Object,
optimisticResponse?: Object,
updateQueries?: MutationQueryReducersMap,
refetchQueries?: string[] | PureQueryOptions[];
update?: MutationUpdaterFn;
}

declare export interface QueryOpts {
Expand Down
4 changes: 4 additions & 0 deletions src/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -39,6 +41,8 @@ export declare interface MutationOpts {
variables?: Object;
optimisticResponse?: Object;
updateQueries?: MutationQueryReducersMap;
refetchQueries?: string[] | PureQueryOptions[];
update?: MutationUpdaterFn;
client?: ApolloClient;
}

Expand Down