@pothos/plugin-dataloader
Version:
A Pothos plugin for attaching dataloader to object types
8 lines (7 loc) • 474 B
TypeScript
import { type SchemaTypes, UnionRef } from '@pothos/core';
import type DataLoader from 'dataloader';
export declare class LoadableUnionRef<Types extends SchemaTypes, RefShape, Shape, Key, CacheKey> extends UnionRef<Types, RefShape, Shape> {
getDataloader: (context: Types["Context"]) => DataLoader<Key, Shape, CacheKey>;
constructor(name: string, getDataloader: (context: Types["Context"]) => DataLoader<Key, Shape, CacheKey>);
}
//# sourceMappingURL=union.d.ts.map