Skip to main content
Module

x/pothos/packages/core/refs/base-with-fields.ts>TypeRefWithFields

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class TypeRefWithFields
import { TypeRefWithFields } from "https://deno.land/x/pothos@release-1721977283/packages/core/refs/base-with-fields.ts";

Properties

private
fieldCbs: Set<(name: string, ref: FieldRef<Types>) => void>
private
fields: Set<() => FieldMap>
private
interfaces: (() => InterfaceParam<Types>[])[]

Methods

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