@graphql-tools/schema
Version:
A set of utils for faster development of GraphQL tools
6 lines (5 loc) • 720 B
text/typescript
import { GraphQLSchema, GraphQLFieldResolver } from 'graphql';
import { IResolvers, IAddResolversToSchemaOptions } from '@graphql-tools/utils';
export declare function addResolversToSchema({ schema, resolvers: inputResolvers, defaultFieldResolver, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, }: IAddResolversToSchemaOptions): GraphQLSchema;
export declare function addResolversToExistingSchema(schema: GraphQLSchema, resolvers: IResolvers, defaultFieldResolver?: GraphQLFieldResolver<any, any>): GraphQLSchema;
export declare function createNewSchemaWithResolvers(schema: GraphQLSchema, resolvers: IResolvers, defaultFieldResolver?: GraphQLFieldResolver<any, any>): GraphQLSchema;