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