deno.land / x / pothos@release-1713397530 / packages / plugin-dataloader / refs / union.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
// @ts-nocheckimport DataLoader from 'https://cdn.skypack.dev/dataloader?dts';import { SchemaTypes, UnionRef } from '../../core/index.ts';export class LoadableUnionRef<Types extends SchemaTypes, RefShape, Shape, Key, CacheKey> extends UnionRef<RefShape, Shape> { getDataloader; constructor(name: string, getDataloader: (context: Types["Context"]) => DataLoader<Key, Shape, CacheKey>) { super(name); this.getDataloader = getDataloader; }}
pothos

Version Info

Tagged at
a year ago