UNPKG

apollo-client

Version:
21 lines (20 loc) 705 B
import { SelectionSet, Document } from 'graphql'; import { NormalizedCache } from './store'; export declare function readQueryFromStore({store, query, variables}: { store: NormalizedCache; query: Document; variables?: Object; }): Object; export declare function readFragmentFromStore({store, fragment, rootId, variables}: { store: NormalizedCache; fragment: Document; rootId: string; variables?: Object; }): Object; export declare function readSelectionSetFromStore({store, rootId, selectionSet, variables, returnPartialData}: { store: NormalizedCache; rootId: string; selectionSet: SelectionSet; variables: Object; returnPartialData?: boolean; }): Object;