import { type LoadableFieldOptions } from "https://deno.land/x/pothos@release-1699481559/packages/plugin-dataloader/mod.ts";
Type Parameters
definition: Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, Args, Kind, Key, ResolveReturnShape>, "resolve"> & { load: (keys: Key[], context: Types["Context"]) => Promise<readonly (Error | LoaderShapeFromType<Types, Type, Nullable>)[]>; loaderOptions?: DataLoader.Options<Key, LoaderShapeFromType<Types, Type, Nullable>, CacheKey>; sort?: (value: LoaderShapeFromType<Types, Type, false>) => Key; resolve: Resolver<ParentShape, InputShapeFromFields<Args>, Types["Context"], (Type extends unknown[] ? [OutputRef<Key>] : OutputRef<Key>) extends infer KeyType ? KeyType extends OutputRef | [OutputRef] ? ShapeFromTypeParam<Types, KeyType, Nullable extends FieldNullability<KeyType> ? Nullable : never> : never : never, ResolveReturnShape>; }