@webundsoehne/nestjs-graphql-typeorm-dataloader
Version:
A library to utilize the graphql-dataloader with nestjs and typeorm.
13 lines (10 loc) • 366 B
TypeScript
import DataLoader from 'dataloader';
import { Connection } from 'typeorm';
import { RelationMetadata } from 'typeorm/metadata/RelationMetadata';
/**
* A common loader to handle to many relations.
*/
declare class ToManyDataloader<V> extends DataLoader<any, V> {
constructor(relation: RelationMetadata, connection: Connection);
}
export { ToManyDataloader };