Skip to main content

ApolloServerFramework

@h4ad/serverless-adapter > ApolloServerFramework

(class) ApolloServerFramework

The framework that forwards requests to Apollo Server

Signature:

export declare class ApolloServerFramework<TContext extends BaseContext> implements FrameworkContract<ApolloServer<TContext>> 

Implements: FrameworkContract <ApolloServer<TContext>>

(constructor)

Construtor padrão

Signature:

constructor(options?: ApolloServerOptions<TContext> | undefined);

Parameters

ParameterTypeDescription
optionsApolloServerOptions <TContext> | undefined(Optional)

(property) options

Signature:

protected readonly options?: ApolloServerOptions<TContext> | undefined;

(method) sendRequest

Signature:

sendRequest(app: ApolloServer<TContext>, request: ServerlessRequest, response: ServerResponse): void;

Parameters

ParameterTypeDescription
appApolloServer<TContext>
requestServerlessRequest
responseServerResponse

Returns:

void