Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-dataloader/mod.ts>LoadableListFieldOptions

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias LoadableListFieldOptions
import { type LoadableListFieldOptions } from "https://deno.land/x/pothos@release-1721854018/packages/plugin-dataloader/mod.ts";

Type Parameters

Types extends SchemaTypes
ParentShape
Type extends OutputType<Types>
Nullable extends FieldNullability<[Type]>
Args extends InputFieldMap
ResolveReturnShape
Key
CacheKey
optional
Kind extends FieldKind = FieldKind
optional
ByPath extends boolean = boolean
definition: Omit<FieldOptionsFromKind<Types, ParentShape, [Type], Nullable, Args, Kind, Key, ResolveReturnShape>, InferredFieldOptionKeys | "type"> & { type: Type; byPath?: ByPath; load: (
keys: Key[],
context: Types["Context"],
args: false extends ByPath ? never : InputShapeFromFields<Args>,
) => Promise<readonly (Error | ShapeFromTypeParam<Types, [Type], Nullable>)[]>; loaderOptions?: DataLoader.Options<Key, ShapeFromTypeParam<Types, [Type], Nullable>, CacheKey>; sort?: (value: ShapeFromTypeParam<Types, [Type], false>) => Key; resolve: Resolver<ParentShape, InputShapeFromFields<Args>, Types["Context"], Key, ResolveReturnShape>; }