UNPKG

1.47 kBTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { BuildSchemaOptions } from '../interfaces';
3import { MutationTypeFactory } from './factories/mutation-type.factory';
4import { OrphanedTypesFactory } from './factories/orphaned-types.factory';
5import { QueryTypeFactory } from './factories/query-type.factory';
6import { SubscriptionTypeFactory } from './factories/subscription-type.factory';
7import { TypeDefinitionsGenerator } from './type-definitions.generator';
8export declare class GraphQLSchemaFactory {
9 private readonly queryTypeFactory;
10 private readonly mutationTypeFactory;
11 private readonly subscriptionTypeFactory;
12 private readonly orphanedTypesFactory;
13 private readonly typeDefinitionsGenerator;
14 private readonly logger;
15 constructor(queryTypeFactory: QueryTypeFactory, mutationTypeFactory: MutationTypeFactory, subscriptionTypeFactory: SubscriptionTypeFactory, orphanedTypesFactory: OrphanedTypesFactory, typeDefinitionsGenerator: TypeDefinitionsGenerator);
16 create(resolvers: Function[]): Promise<GraphQLSchema>;
17 create(resolvers: Function[], scalarClasses: Function[]): Promise<GraphQLSchema>;
18 create(resolvers: Function[], options: BuildSchemaOptions): Promise<GraphQLSchema>;
19 create(resolvers: Function[], scalarClasses: Function[], options: BuildSchemaOptions): Promise<GraphQLSchema>;
20 private assignScalarObjects;
21 private addScalarTypeByClassRef;
22}
23//# sourceMappingURL=graphql-schema.factory.d.ts.map
\No newline at end of file