@graphql-tools/schema
Version:
A set of utils for faster development of GraphQL tools
17 lines (16 loc) • 543 B
text/typescript
import { GraphQLSchema } from 'graphql';
import { IExecutableSchemaDefinition } from './types.cjs';
/**
* 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;