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

x/pothos/packages/core/refs/field.ts>FieldRef

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class FieldRef
import { FieldRef } from "https://deno.land/x/pothos@release-1721854018/packages/core/refs/field.ts";

Constructors

new
FieldRef(kind: Kind, initConfig: (name: string, typeConfig: PothosTypeConfig) => PothosOutputFieldConfig<Types>)

Type Parameters

Types extends SchemaTypes
optional
T = unknown
optional
Kind extends FieldKind = FieldKind

Properties

private
initConfig: (name: string, typeConfig: PothosTypeConfig) => PothosOutputFieldConfig<Types>
private
onUseCallbacks: Set<(config: PothosOutputFieldConfig<Types>) => void>
protected
pendingActions: ((config: PothosOutputFieldConfig<Types>) => PothosOutputFieldConfig<Types> | void)[]
$inferType: T
optional
fieldName: string
kind: FieldKind
[outputFieldShapeKey]: T