UNPKG

@landingexp/apollo-server-azure-functions

Version:

Production-ready Node.js GraphQL server for Azure Functions

18 lines 775 B
import { Context, HttpRequest } from '@azure/functions'; import { ApolloServerBase, GraphQLOptions } from '@landingexp/apollo-server-core'; export interface CreateHandlerOptions { cors?: { origin?: boolean | string | string[]; methods?: string | string[]; allowedHeaders?: string | string[]; exposedHeaders?: string | string[]; credentials?: boolean; maxAge?: number; }; } export declare class ApolloServer extends ApolloServerBase { protected serverlessFramework(): boolean; createGraphQLServerOptions(request: HttpRequest, context: Context): Promise<GraphQLOptions>; createHandler({ cors }?: CreateHandlerOptions): (context: Context, req: HttpRequest) => void; } //# sourceMappingURL=ApolloServer.d.ts.map