UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

18 lines • 1.05 kB
import { GraphQLSchema } from 'graphql'; import { GraphQLAstExplorer } from './graphql-ast.explorer.js'; import { GraphQLSchemaBuilder } from './graphql-schema.builder.js'; import { GqlModuleOptions } from './interfaces/index.js'; import { ResolversExplorerService, ScalarsExplorerService } from './services/index.js'; export declare class GraphQLFactory { private readonly resolversExplorerService; private readonly scalarsExplorerService; private readonly graphqlAstExplorer; private readonly gqlSchemaBuilder; private readonly logger; constructor(resolversExplorerService: ResolversExplorerService, scalarsExplorerService: ScalarsExplorerService, graphqlAstExplorer: GraphQLAstExplorer, gqlSchemaBuilder: GraphQLSchemaBuilder); generateSchema<T extends GqlModuleOptions>(options?: T): Promise<GraphQLSchema>; private overrideOrExtendResolvers; generateDefinitions(typeDefs: string | string[], options: GqlModuleOptions): Promise<void>; private isEmptyValue; } //# sourceMappingURL=graphql.factory.d.ts.map