Skip to main content
Module

x/pothos/packages/core/refs/input-object.ts>InputObjectRef

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class InputObjectRef
implements InputRef<T>, [PothosSchemaTypes.InputObjectRef]<Types, T>
import { InputObjectRef } from "https://deno.land/x/pothos@release-1721977283/packages/core/refs/input-object.ts";

Constructors

new
InputObjectRef(name: string)

Properties

private
fieldCbs: Set<(name: string, ref: InputFieldRef<Types>) => void>
private
fields: Set<() => InputFieldMap>
$inferInput: T
kind: "InputObject"
[inputShapeKey]: T

Methods

addFields(fields: () => InputFieldMap)
onField(cb: (name: string, ref: InputFieldRef<Types>) => void)