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

x/pothos/packages/plugin-dataloader/index.ts>DataLoaderOptions

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

Type Parameters

Types extends SchemaTypes
LoadResult
Key extends bigint | number | string
CacheKey
definition: { load: (keys: Key[], context: Types["Context"]) => Promise<readonly LoadResult[]>; loaderOptions?: DataLoader.Options<Key, Shape, CacheKey>; } & ({ toKey: (value: Shape) => Key; cacheResolved?: boolean; sort?: boolean; } | { toKey?: undefined; cacheResolved?: (value: Shape) => Key; sort?: (value: Shape) => Key; })