Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pothos/packages/core/mod.ts>ArgumentRef

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

Constructors

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

Type Parameters

Types extends SchemaTypes
optional
T = unknown

Properties

private
initConfig: (
name: string,
field: 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: "Arg"
[inputFieldShapeKey]: T

Methods

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