apollo-client
Version:
A simple yet functional GraphQL client.
21 lines (20 loc) • 705 B
TypeScript
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;