UNPKG

apollo-client

Version:
31 lines (30 loc) 1.1 kB
import { NormalizedCache } from './store'; import { SelectionSetWithRoot } from '../queries/store'; import { IdGetter } from './extensions'; import { SelectionSet, Document } from 'graphql'; export interface DiffResult { result: any; isMissing?: 'true'; missingSelectionSets?: SelectionSetWithRoot[]; } export declare function diffQueryAgainstStore({store, query, variables, dataIdFromObject}: { store: NormalizedCache; query: Document; variables?: Object; dataIdFromObject?: IdGetter; }): DiffResult; export declare function diffFragmentAgainstStore({store, fragment, rootId, variables, dataIdFromObject}: { store: NormalizedCache; fragment: Document; rootId: string; variables?: Object; dataIdFromObject?: IdGetter; }): DiffResult; export declare function diffSelectionSetAgainstStore({selectionSet, store, rootId, throwOnMissingField, variables, dataIdFromObject}: { selectionSet: SelectionSet; store: NormalizedCache; rootId: string; throwOnMissingField: boolean; variables: Object; dataIdFromObject?: IdGetter; }): DiffResult;