UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

16 lines 1.09 kB
import { ApplicationConfig, HttpAdapterHost } from '@nestjs/core'; import { GraphQLSchema } from 'graphql'; import { GraphQLFactory } from '../graphql.factory'; import { GqlModuleOptions, GraphQLDriver } from '../interfaces'; export declare abstract class AbstractGraphQLDriver<TOptions extends Record<string, any> = GqlModuleOptions> implements GraphQLDriver<TOptions> { protected readonly httpAdapterHost: HttpAdapterHost; protected readonly applicationConfig?: ApplicationConfig; protected readonly graphQlFactory: GraphQLFactory; abstract start(options: TOptions): Promise<unknown>; abstract stop(): Promise<void>; mergeDefaultOptions(options: TOptions, defaults?: Record<string, any>): Promise<TOptions>; generateSchema(options: TOptions): Promise<GraphQLSchema> | null; subscriptionWithFilter(instanceRef: unknown, filterFn: (payload: any, variables: any, context: any) => boolean | Promise<boolean>, createSubscribeContext: Function): any; protected getNormalizedPath(options: TOptions): string; } //# sourceMappingURL=abstract-graphql.driver.d.ts.map