UNPKG

@giraphql/plugin-dataloader

Version:

A GiraphQL plugin for attaching dataloader to object types

7 lines 458 B
import DataLoader from 'dataloader'; import { SchemaTypes, UnionRef } from '@giraphql/core'; export declare class LoadableUnionRef<Types extends SchemaTypes, RefShape, Shape, Key, CacheKey> extends UnionRef<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