UNPKG

@bishwenduk029/fringe

Version:
12 lines (11 loc) 573 B
import * as GraphQL from 'graphql'; import { DenormalizationResult, Variables, ResolveType } from './types'; import { Cache } from 'cache'; /** * Creates a graphql response by denormalizing. * @param query The graphql query document * @param variables The graphql query variables * @param normMap The map of normalized objects * @param resolveType Function get get typeName from an object */ export declare function denormalize(query: GraphQL.DocumentNode, variables: Variables | undefined, normMap: Cache, resolveType?: ResolveType): Promise<DenormalizationResult>;