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