Skip to main content
Module

x/pothos/packages/core/refs/base.ts>BaseTypeRef

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

Constructors

new
BaseTypeRef(
kind:
| "Enum"
| "InputList"
| "InputObject"
| "Interface"
| "List"
| "Object"
| "Scalar"
| "Union"
,
name: string,
config?: T | null,
)

Type Parameters

Types extends SchemaTypes
optional
T = unknown

Properties

private
currentConfig: T | null
protected
configCallbacks: Set<(config: T) => void>
protected
preparedForBuild: boolean
association: BaseTypeRef<Types, T> | string | null
kind
name

Methods

protected
onceOnConfig(cb: (config: T) => T | void)
associate(ref: BaseTypeRef<Types, T> | string)
onConfig(cb: (config: T) => T | void)
updateConfig(config: T | ((oldConfig: T) => T))