@graphql-tools/merge
Version:
A set of utils for faster development of GraphQL tools
9 lines (8 loc) • 570 B
TypeScript
import { DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
import { Config } from './merge-typedefs.js';
export declare const DEFAULT_OPERATION_TYPE_NAME_MAP: {
readonly query: "Query";
readonly mutation: "Mutation";
readonly subscription: "Subscription";
};
export declare function mergeSchemaDefs(node: SchemaDefinitionNode | SchemaExtensionNode, existingNode: SchemaDefinitionNode | SchemaExtensionNode, config?: Config, directives?: Record<string, DirectiveDefinitionNode>): SchemaDefinitionNode | SchemaExtensionNode;