Skip to main content
Module

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class ImplementableLoadableNodeRef
extends ImplementableObjectRef<Types, RefShape, Shape>
import { ImplementableLoadableNodeRef } from "https://deno.land/x/pothos@release-1721684308/packages/plugin-dataloader/index.ts";

Constructors

new
ImplementableLoadableNodeRef(
builder: PothosSchemaTypes.SchemaBuilder<Types>,
name: string,
unnamed 2: DataLoaderOptions<Types, Shape | Error, Key, CacheKey, Shape> & LoadableNodeId<Types, Shape, IDShape>,
)

Type Parameters

Types extends SchemaTypes
RefShape
Shape
optional
IDShape extends bigint | number | string = string
optional
Key extends bigint | number | string = IDShape
optional
CacheKey = Key

Properties

protected
cacheResolved
getDataloader
parseId: ((id: string, ctx: object) => IDShape) | undefined