1 |
|
2 |
|
3 |
|
4 | import { ApolloAction } from '../actions';
|
5 | import { FragmentMap } from '../queries/getFromAST';
|
6 | import { SelectionSet, GraphQLError } from 'graphql';
|
7 | export interface QueryStore {
|
8 | [queryId: string]: QueryStoreValue;
|
9 | }
|
10 | export interface QueryStoreValue {
|
11 | queryString: string;
|
12 | query: SelectionSetWithRoot;
|
13 | minimizedQueryString: string;
|
14 | minimizedQuery: SelectionSetWithRoot;
|
15 | variables: Object;
|
16 | previousVariables: Object;
|
17 | loading: boolean;
|
18 | stopped: boolean;
|
19 | networkError: Error;
|
20 | graphQLErrors: GraphQLError[];
|
21 | forceFetch: boolean;
|
22 | returnPartialData: boolean;
|
23 | lastRequestId: number;
|
24 | fragmentMap: FragmentMap;
|
25 | }
|
26 | export interface SelectionSetWithRoot {
|
27 | id: string;
|
28 | typeName: string;
|
29 | selectionSet: SelectionSet;
|
30 | }
|
31 | export declare function queries(previousState: QueryStore, action: ApolloAction): QueryStore;
|