nestjs-decorated-dataloaders
Version:
A module that helps you to create graphql dataloaders with decorators in Nest.js
18 lines (17 loc) • 466 B
TypeScript
import { CacheMap } from "dataloader";
export interface CacheMapServiceOptions {
getCacheMap?: () => CacheMap<any, any>;
cache?: boolean;
maxBatchSize?: number;
name?: string;
}
/**
* Service to manage the cacheMap options of the Dataloader;
*/
export declare class CacheMapService {
getCacheMap?: () => CacheMap<any, any>;
cache?: boolean;
maxBatchSize?: number;
name?: string;
constructor(options?: CacheMapServiceOptions);
}