UNPKG

@webundsoehne/nestjs-graphql-typeorm-dataloader

Version:

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

10 lines (8 loc) 247 B
interface ResolverData { context: any; } /** * A basic batch loader function for custom data loader. */ declare type BatchLoadFn<K, V> = (keys: readonly K[], data: ResolverData) => PromiseLike<ArrayLike<V | Error>>; export { BatchLoadFn };