@webundsoehne/nestjs-graphql-typeorm-dataloader
Version:
A library to utilize the graphql-dataloader with nestjs and typeorm.
10 lines (7 loc) • 381 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 parse the subfield with the given decorator according to the relation type given.
*/
declare const TypeormLoaderMiddleware: FieldMiddleware;
export { TypeormLoaderMiddleware };