Skip to main content
Module

x/pothos/packages/core/refs/input-field.ts>InputFieldRef

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

Constructors

new
InputFieldRef(initConfig: (name: string, typeConfig: PothosTypeConfig) => PothosInputFieldConfig<Types>)

Type Parameters

Types extends SchemaTypes
optional
T = unknown

Properties

private
initConfig: (name: string, typeConfig: PothosTypeConfig) => PothosInputFieldConfig<Types>
private
onUseCallbacks: Set<(config: PothosInputFieldConfig<Types>) => void>
protected
pendingActions: ((config: PothosInputFieldConfig<Types>) => PothosInputFieldConfig<Types> | void)[]
$inferInput: T
optional
fieldName: string
kind: "InputObject"
[inputFieldShapeKey]: T

Methods

getConfig(name: string, typeConfig: PothosTypeConfig): PothosInputFieldConfig<Types>
onFirstUse(cb: (config: PothosInputFieldConfig<Types>) => void)
updateConfig(cb: (config: PothosInputFieldConfig<Types>) => PothosInputFieldConfig<Types> | void)