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

x/pothos/packages/plugin-relay/mod.ts>NodeObjectOptions

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

Type Parameters

Types extends SchemaTypes
Param extends ObjectParam<Types>
Interfaces extends InterfaceParam<Types>[]
definition: NodeBaseObjectOptionsForParam<Types, Param, Interfaces> & { id: Omit<FieldOptionsFromKind<Types, ParentShape<Types, Param>, "ID", false, { }, "Object", OutputShape<Types, "ID">, MaybePromise<OutputShape<Types, "ID">>>, "args" | "nullable" | "type">; brandLoadedObjects?: boolean; loadOne?: (id: string, context: Types["Context"]) => MaybePromise<OutputShape<Types, Param> | null | undefined>; loadMany?: (ids: string[], context: Types["Context"]) => MaybePromise<MaybePromise<OutputShape<Types, Param> | null | undefined>[]>; loadWithoutCache?: (
id: string,
context: Types["Context"],
) => MaybePromise<OutputShape<Types, Param> | null | undefined>; loadManyWithoutCache?: (ids: string[], context: Types["Context"]) => MaybePromise<MaybePromise<OutputShape<Types, Param> | null | undefined>[]>; }