UNPKG

1.27 kBTypeScriptView Raw
1import { GraphQLSchemaConfig } from 'graphql';
2import { GraphQLAstExplorer } from './graphql-ast.explorer';
3import { GraphQLSchemaBuilder } from './graphql-schema.builder';
4import { GraphQLSchemaHost } from './graphql-schema.host';
5import { GqlModuleOptions } from './interfaces';
6import { PluginsExplorerService, ResolversExplorerService, ScalarsExplorerService } from './services';
7export declare class GraphQLFactory {
8 private readonly resolversExplorerService;
9 private readonly scalarsExplorerService;
10 private readonly pluginsExplorerService;
11 private readonly graphqlAstExplorer;
12 private readonly gqlSchemaBuilder;
13 private readonly gqlSchemaHost;
14 constructor(resolversExplorerService: ResolversExplorerService, scalarsExplorerService: ScalarsExplorerService, pluginsExplorerService: PluginsExplorerService, graphqlAstExplorer: GraphQLAstExplorer, gqlSchemaBuilder: GraphQLSchemaBuilder, gqlSchemaHost: GraphQLSchemaHost);
15 mergeOptions(options?: GqlModuleOptions): Promise<GqlModuleOptions>;
16 overrideOrExtendResolvers(executableSchemaConfig: GraphQLSchemaConfig, autoGeneratedSchemaConfig: GraphQLSchemaConfig): GraphQLSchemaConfig;
17 generateDefinitions(typeDefs: string | string[], options: GqlModuleOptions): Promise<void>;
18}