UNPKG

@webundsoehne/nestjs-graphql-typeorm-dataloader

Version:

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

9 lines (6 loc) 400 B
import { RelationMetadata } from 'typeorm/metadata/RelationMetadata'; import { Context } from '../interfaces/context.interface.js'; import { ForeignKeyFunc } from '../interfaces/typeorm-loader-handler.interface.js'; import 'typeorm'; declare function handleToMany<V>(foreignKeyFunc: ForeignKeyFunc, parent: any, context: Context, relation: RelationMetadata): Promise<any>; export { handleToMany };