UNPKG

@webundsoehne/nestjs-graphql-typeorm-dataloader

Version:

A library to utilize the graphql-dataloader with nestjs and typeorm.

15 lines (12 loc) 316 B
import { Connection } from 'typeorm'; /** * The custom context entry that this plugin runs up on to inject the connection, * and keep track of the request. */ interface Context { DATA_LOADER_CONTEXT: { requestId: string; typeormGetConnection?: () => Connection; }; } export { Context };