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
Parameter | Type | Description |
---|---|---|
options | ApolloServerOptions <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
Parameter | Type | Description |
---|---|---|
app | ApolloServer<TContext> | |
request | ||
response | ServerResponse |
Returns:
void