UNPKG

@graphql-tools/schema

Version:

A set of utils for faster development of GraphQL tools

17 lines (16 loc) 542 B
import { GraphQLSchema } from 'graphql'; import { IExecutableSchemaDefinition } from './types.js'; /** * Configuration object for schema merging */ export type MergeSchemasConfig<T = any> = Partial<IExecutableSchemaDefinition<T>> & { /** * The schemas to be merged */ schemas?: GraphQLSchema[]; }; /** * Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema. * @param config Configuration object */ export declare function mergeSchemas(config: MergeSchemasConfig): GraphQLSchema;