1 | import { ApplicationConfig, HttpAdapterHost } from '@nestjs/core';
|
2 | import { GraphQLSchema } from 'graphql';
|
3 | import { GraphQLFactory } from '../graphql.factory';
|
4 | import { GqlModuleOptions, GraphQLDriver } from '../interfaces';
|
5 | export 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 |
|
\ | No newline at end of file |