Skip to main content
Module

x/pothos/packages/core/refs/union.ts>UnionRef

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

Constructors

new
UnionRef(name: string, config?: PothosUnionTypeConfig)

Type Parameters

Types extends SchemaTypes
T
optional
P = T

Properties

private
types: (() => ObjectParam<Types>[])[]
$inferType: T
kind: "Union"
[outputShapeKey]: T
[parentShapeKey]: P