apollo-client
Version:
A simple yet functional GraphQL client.
10 lines (9 loc) • 395 B
TypeScript
/// <reference types="graphql" />
import { NormalizedCache } from './storeUtils';
import { ApolloReducerConfig } from '../store';
import { DocumentNode } from 'graphql';
export declare function replaceQueryResults(state: NormalizedCache, {variables, document, newResult}: {
variables: any;
document: DocumentNode;
newResult: Object;
}, config: ApolloReducerConfig): NormalizedCache;