@webundsoehne/nestjs-graphql-typeorm-dataloader
Version:
A library to utilize the graphql-dataloader with nestjs and typeorm.
10 lines (7 loc) • 608 B
TypeScript
import { RelationMetadata } from 'typeorm/metadata/RelationMetadata';
import { Context } from '../interfaces/context.interface.js';
import { SelfKeyFunc } from '../interfaces/typeorm-loader-handler.interface.js';
import 'typeorm';
declare function handleOneToOneNotOwnerWithSelfKey<V>(selfKeyFunc: SelfKeyFunc, parent: any, context: Context, relation: RelationMetadata): Promise<any>;
declare function handleOneToManyWithSelfKey<V>(selfKeyFunc: SelfKeyFunc, parent: any, context: Context, relation: RelationMetadata): Promise<any>;
export { handleOneToManyWithSelfKey, handleOneToOneNotOwnerWithSelfKey };