UNPKG

2.34 kBTypeScriptView Raw
1import { MetadataScanner, ModuleRef, ModulesContainer } from '@nestjs/core';
2import { ExternalContextCreator } from '@nestjs/core/helpers/external-context-creator';
3import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
4import { Module } from '@nestjs/core/injector/module';
5import { SerializedGraph } from '@nestjs/core/inspector/serialized-graph';
6import { SubscriptionOptions } from '../decorators/subscription.decorator';
7import { AbstractGraphQLDriver } from '../drivers/abstract-graphql.driver';
8import { GqlModuleOptions } from '../interfaces';
9import { ResolverMetadata } from '../interfaces/resolver-metadata.interface';
10import { BaseExplorerService } from './base-explorer.service';
11export declare class ResolversExplorerService extends BaseExplorerService {
12 private readonly modulesContainer;
13 private readonly metadataScanner;
14 private readonly externalContextCreator;
15 private readonly gqlOptions;
16 private readonly moduleRef;
17 private readonly serializedGraph;
18 private readonly logger;
19 private readonly gqlParamsFactory;
20 private readonly injector;
21 constructor(modulesContainer: ModulesContainer, metadataScanner: MetadataScanner, externalContextCreator: ExternalContextCreator, gqlOptions: GqlModuleOptions, moduleRef: ModuleRef, serializedGraph: SerializedGraph);
22 explore(): any;
23 filterResolvers(gqlAdapter: AbstractGraphQLDriver, wrapper: InstanceWrapper, moduleRef: Module): ResolverMetadata[];
24 createContextCallback<T extends Record<string, any>>(instance: T, prototype: any, wrapper: InstanceWrapper, moduleRef: Module, resolver: ResolverMetadata, isRequestScoped: boolean, transform?: Function): Function;
25 createSubscriptionMetadata(gqlAdapter: AbstractGraphQLDriver, createSubscribeContext: Function, subscriptionOptions: SubscriptionOptions, resolverMetadata: ResolverMetadata, instanceRef: Record<string, any>): {
26 callback: {
27 subscribe: any;
28 resolve: any;
29 };
30 name: string;
31 type: string;
32 methodName: string;
33 };
34 getAllCtors(): Function[];
35 private mapToCtor;
36 private registerContextProvider;
37 private registerFieldMiddlewareIfExists;
38 private getContextId;
39 private assignResolverConstructorUniqueId;
40}
41//# sourceMappingURL=resolvers-explorer.service.d.ts.map
\No newline at end of file