Skip to content

ContextMiddleware

@tsed/typegraphql

Usage

typescript
import { ContextMiddleware } from "@tsed/typegraphql";

See /packages/graphql/typegraphql/src/types/middlewares/ContextMiddleware.ts.

Overview

ts
const ContextMiddleware: MiddlewareFn<{
    req: {
        $ctx: DIContext;
    };
}>;

req

ts
req: {
     $ctx: DIContext;
 };

Released under the MIT License.