UNPKG

919 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { GqlModuleOptions } from './interfaces';
3import { GraphQLSchemaFactory } from './schema-builder/graphql-schema.factory';
4import { FileSystemHelper } from './schema-builder/helpers/file-system.helper';
5import { ScalarsExplorerService } from './services';
6export declare class GraphQLSchemaBuilder {
7 private readonly scalarsExplorerService;
8 private readonly gqlSchemaFactory;
9 private readonly fileSystemHelper;
10 constructor(scalarsExplorerService: ScalarsExplorerService, gqlSchemaFactory: GraphQLSchemaFactory, fileSystemHelper: FileSystemHelper);
11 build(autoSchemaFile: string | boolean, options: GqlModuleOptions, resolvers: Function[]): Promise<any>;
12 buildFederatedSchema(autoSchemaFile: string | boolean, options: GqlModuleOptions, resolvers: Function[]): Promise<GraphQLSchema>;
13 private buildSchema;
14 private loadFederationDirectives;
15}