UNPKG

@graphql-tools/stitch

Version:

A set of utils for faster development of GraphQL tools

5 lines (4 loc) 596 B
import { GraphQLFieldConfig, GraphQLNamedType } from 'graphql'; import { MergeFieldConfigCandidate, MergeTypeCandidate, TypeMergingOptions } from './types.cjs'; export declare function mergeCandidates<TContext = Record<string, any>>(typeName: string, candidates: Array<MergeTypeCandidate<TContext>>, typeMergingOptions?: TypeMergingOptions<TContext>): GraphQLNamedType; export declare function getDefaultFieldConfigMerger(useNonNullableFieldOnConflict?: boolean): <TContext = Record<string, any>>(candidates: Array<MergeFieldConfigCandidate<TContext>>) => GraphQLFieldConfig<any, TContext, any>;