@webundsoehne/nestjs-graphql-typeorm-dataloader
Version:
A library to utilize the graphql-dataloader with nestjs and typeorm.
10 lines (7 loc) • 371 B
TypeScript
import { FieldMiddleware } from '@nestjs/graphql';
/**
* This middleware checks and processes for the subfields of a parent entity that should be resolved by the data loader.
* It will automatically run the function that is embedded inside the DATA_LOADER extension field.
*/
declare const CustomLoaderMiddleware: FieldMiddleware;
export { CustomLoaderMiddleware };