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

x/pothos/packages/plugin-relay/node-ref.ts>NodeRef

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class NodeRef
extends ObjectRef<T, P>
import { NodeRef } from "https://deno.land/x/pothos@release-1689659814/packages/plugin-relay/node-ref.ts";

Constructors

new
NodeRef(name: string, options: { parseId?: (id: string, ctx: object) => IDShape; })

Type Parameters

T
optional
P = T
optional
IDShape = string

Properties

parseId: ((id: string, ctx: object) => IDShape) | undefined
[relayIDShapeKey]: IDShape