1 | import { GraphQLSchema, DocumentNode } from 'graphql';
|
2 | import { InMemoryLRUCache } from 'apollo-server-caching';
|
3 | import type { ApolloServerPlugin, LandingPage } from 'apollo-server-plugin-base';
|
4 | import { GraphQLServerOptions } from './graphqlOptions';
|
5 | import { Config } from './types';
|
6 | import { GraphQLRequest } from './requestPipeline';
|
7 | import { SchemaHash } from 'apollo-server-types';
|
8 | export declare type SchemaDerivedData = {
|
9 | schema: GraphQLSchema;
|
10 | schemaHash: SchemaHash;
|
11 | documentStore?: InMemoryLRUCache<DocumentNode>;
|
12 | };
|
13 | export declare class ApolloServerBase<ContextFunctionParams = any> {
|
14 | private logger;
|
15 | graphqlPath: string;
|
16 | requestOptions: Partial<GraphQLServerOptions<any>>;
|
17 | private context?;
|
18 | private apolloConfig;
|
19 | protected plugins: ApolloServerPlugin[];
|
20 | private parseOptions;
|
21 | private config;
|
22 | private state;
|
23 | private toDispose;
|
24 | private toDisposeLast;
|
25 | private drainServers;
|
26 | private experimental_approximateDocumentStoreMiB;
|
27 | private stopOnTerminationSignals;
|
28 | private landingPage;
|
29 | constructor(config: Config<ContextFunctionParams>);
|
30 | start(): Promise<void>;
|
31 | protected _start(): Promise<void>;
|
32 | private maybeRegisterTerminationSignalHandlers;
|
33 | private _ensureStarted;
|
34 | protected ensureStarted(): Promise<void>;
|
35 | protected assertStarted(methodName: string): void;
|
36 | private logStartupError;
|
37 | private constructSchema;
|
38 | private maybeAddMocksToConstructedSchema;
|
39 | private generateSchemaDerivedData;
|
40 | stop(): Promise<void>;
|
41 | protected serverlessFramework(): boolean;
|
42 | private ensurePluginInstantiation;
|
43 | private initializeDocumentStore;
|
44 | protected graphQLServerOptions(integrationContextArgument?: any): Promise<GraphQLServerOptions>;
|
45 | executeOperation(request: Omit<GraphQLRequest, 'query'> & {
|
46 | query?: string | DocumentNode;
|
47 | }, integrationContextArgument?: ContextFunctionParams): Promise<import("apollo-server-types").GraphQLResponse>;
|
48 | protected getLandingPage(): LandingPage | null;
|
49 | }
|
50 | export declare type ImplicitlyInstallablePlugin = ApolloServerPlugin & {
|
51 | __internal_installed_implicitly__: boolean;
|
52 | };
|
53 | export declare function isImplicitlyInstallablePlugin(p: ApolloServerPlugin): p is ImplicitlyInstallablePlugin;
|
54 |
|
\ | No newline at end of file |