UNPKG

550 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { IExecutableSchemaDefinition } from './types.js';
3/**
4 * Configuration object for schema merging
5 */
6export declare type MergeSchemasConfig<T = any> = Partial<IExecutableSchemaDefinition<T>> & {
7 /**
8 * The schemas to be merged
9 */
10 schemas?: GraphQLSchema[];
11};
12/**
13 * Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
14 * @param config Configuration object
15 */
16export declare function mergeSchemas(config: MergeSchemasConfig): GraphQLSchema;