1 |
|
2 |
|
3 |
|
4 | import { ApolloAction } from '../actions';
|
5 | import { SelectionSet } from 'graphql';
|
6 | import { FragmentMap } from '../queries/getFromAST';
|
7 | export interface MutationStore {
|
8 | [mutationId: string]: MutationStoreValue;
|
9 | }
|
10 | export interface MutationStoreValue {
|
11 | mutationString: string;
|
12 | mutation: SelectionSetWithRoot;
|
13 | variables: Object;
|
14 | loading: boolean;
|
15 | error: Error;
|
16 | fragmentMap: FragmentMap;
|
17 | }
|
18 | export interface SelectionSetWithRoot {
|
19 | id: string;
|
20 | typeName: string;
|
21 | selectionSet: SelectionSet;
|
22 | }
|
23 | export declare function mutations(previousState: MutationStore, action: ApolloAction): MutationStore;
|