Skip to main content
Module

x/pothos/packages/plugin-relay/types.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
import { type NodeObjectOptions } from "https://deno.land/x/pothos@release-1713397530/packages/plugin-relay/types.ts";

Type Parameters

Types extends SchemaTypes
Param extends ObjectParam<Types>
Interfaces extends InterfaceParam<Types>[]
optional
IDShape = string
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"> & { parse?: (id: string, ctx: Types["Context"]) => IDShape; }; brandLoadedObjects?: boolean; loadOne?: (id: IDShape, context: Types["Context"]) => MaybePromise<OutputShape<Types, Param> | null | undefined>; loadMany?: (ids: IDShape[], context: Types["Context"]) => MaybePromise<readonly MaybePromise<OutputShape<Types, Param> | null | undefined>[]>; loadWithoutCache?: (
id: IDShape,
context: Types["Context"],
) => MaybePromise<OutputShape<Types, Param> | null | undefined>; loadManyWithoutCache?: (ids: IDShape[], context: Types["Context"]) => MaybePromise<readonly MaybePromise<OutputShape<Types, Param> | null | undefined>[]>; }