Skip to content

Interface: GqlExecutionContextStatic

Defined in: packages/apollo/src/interfaces/apollo-options.interface.ts:262

Static interface for creating GqlExecutionContext instances.

Methods

create()

ts
create<TContext>(context): GqlExecutionContext<TContext>;

Defined in: packages/apollo/src/interfaces/apollo-options.interface.ts:268

Creates a GqlExecutionContext from an ExecutionContext.

Type Parameters

Type ParameterDefault type
TContextGraphQLContext

Parameters

ParameterTypeDescription
contextExecutionContextThe execution context.

Returns

GqlExecutionContext<TContext>

A GqlExecutionContext instance.

Released under the MIT License.