1 |
|
2 | import { Server as HttpServer } from 'http';
|
3 | import { Http2Server, Http2SecureServer } from 'http2';
|
4 | import { Server as HttpsServer } from 'https';
|
5 | import { GraphQLSchema, DocumentNode } from 'graphql';
|
6 | import { ApolloServerPlugin } from 'apollo-server-plugin-base';
|
7 | import type WebSocket from 'ws';
|
8 | import { GraphQLServerOptions } from './graphqlOptions';
|
9 | import { Config, SubscriptionServerOptions, FileUploadOptions } from './types';
|
10 | import { PlaygroundRenderPageOptions } from './playground';
|
11 | import { GraphQLRequest } from './requestPipeline';
|
12 | export declare class ApolloServerBase {
|
13 | private logger;
|
14 | subscriptionsPath?: string;
|
15 | graphqlPath: string;
|
16 | requestOptions: Partial<GraphQLServerOptions<any>>;
|
17 | private context?;
|
18 | private apolloConfig;
|
19 | protected plugins: ApolloServerPlugin[];
|
20 | protected subscriptionServerOptions?: SubscriptionServerOptions;
|
21 | protected uploadsConfig?: FileUploadOptions;
|
22 | private subscriptionServer?;
|
23 | protected playgroundOptions?: PlaygroundRenderPageOptions;
|
24 | private parseOptions;
|
25 | private config;
|
26 | private state;
|
27 | protected schema?: GraphQLSchema;
|
28 | private toDispose;
|
29 | private toDisposeLast;
|
30 | private experimental_approximateDocumentStoreMiB;
|
31 | constructor(config: Config);
|
32 | setGraphQLPath(path: string): void;
|
33 | start(): Promise<void>;
|
34 | protected _start(): Promise<void>;
|
35 | protected willStart(): Promise<void>;
|
36 | private ensureStarted;
|
37 | protected ensureStarting(): void;
|
38 | private logStartupError;
|
39 | private startGatewayAndLoadSchema;
|
40 | private constructSchema;
|
41 | private generateSchemaDerivedData;
|
42 | stop(): Promise<void>;
|
43 | installSubscriptionHandlers(server: HttpServer | HttpsServer | Http2Server | Http2SecureServer | WebSocket.Server): void;
|
44 | protected supportsSubscriptions(): boolean;
|
45 | protected supportsUploads(): boolean;
|
46 | protected serverlessFramework(): boolean;
|
47 | private ensurePluginInstantiation;
|
48 | private initializeDocumentStore;
|
49 | protected graphQLServerOptions(integrationContextArgument?: Record<string, any>): Promise<GraphQLServerOptions>;
|
50 | executeOperation(request: Omit<GraphQLRequest, 'query'> & {
|
51 | query?: string | DocumentNode;
|
52 | }, integrationContextArgument?: Record<string, any>): Promise<import("apollo-server-types").GraphQLResponse>;
|
53 | }
|
54 | //# sourceMappingURL=ApolloServer.d.ts.map |
\ | No newline at end of file |