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

x/pothos/packages/plugin-relay/index.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-1695354039/packages/plugin-relay/index.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>[]>; }