UNPKG

@webundsoehne/nestjs-graphql-typeorm-dataloader

Version:

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

13 lines (10 loc) 363 B
import DataLoader from 'dataloader'; import { Connection } from 'typeorm'; import { RelationMetadata } from 'typeorm/metadata/RelationMetadata'; /** * A common loader to handle to one relations. */ declare class ToOneDataloader<V> extends DataLoader<any, V> { constructor(relation: RelationMetadata, connection: Connection); } export { ToOneDataloader };