graphql-modules
Version:
Create reusable, maintainable, testable and extendable GraphQL modules
21 lines (20 loc) • 539 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONTEXT = void 0;
const di_1 = require("../di");
/**
* @api
* `CONTEXT` is an InjectionToken representing the provided `GraphQLModules.GlobalContext`
*
* @example
*
* ```typescript
* import { CONTEXT, Inject, Injectable } from 'graphql-modules';
*
* (A)Injectable()
* export class Data {
* constructor((A)Inject(CONTEXT) private context: GraphQLModules.GlobalContext) {}
* }
* ```
*/
exports.CONTEXT = new di_1.InjectionToken('context');