UNPKG

1.09 kBTypeScriptView Raw
1import { ApplicationConfig, HttpAdapterHost } from '@nestjs/core';
2import { GraphQLSchema } from 'graphql';
3import { GraphQLFactory } from '../graphql.factory';
4import { GqlModuleOptions, GraphQLDriver } from '../interfaces';
5export declare abstract class AbstractGraphQLDriver<TOptions extends Record<string, any> = GqlModuleOptions> implements GraphQLDriver<TOptions> {
6 protected readonly httpAdapterHost: HttpAdapterHost;
7 protected readonly applicationConfig?: ApplicationConfig;
8 protected readonly graphQlFactory: GraphQLFactory;
9 abstract start(options: TOptions): Promise<unknown>;
10 abstract stop(): Promise<void>;
11 mergeDefaultOptions(options: TOptions, defaults?: Record<string, any>): Promise<TOptions>;
12 generateSchema(options: TOptions): Promise<GraphQLSchema> | null;
13 subscriptionWithFilter(instanceRef: unknown, filterFn: (payload: any, variables: any, context: any) => boolean | Promise<boolean>, createSubscribeContext: Function): any;
14 protected getNormalizedPath(options: TOptions): string;
15}
16//# sourceMappingURL=abstract-graphql.driver.d.ts.map
\No newline at end of file