Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/core/fieldUtils/base.ts>BaseFieldUtil

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

Constructors

new
BaseFieldUtil(
builder: PothosSchemaTypes.SchemaBuilder<Types>,
kind: Kind,
graphqlKind: PothosSchemaTypes.PothosKindToGraphQLType[Kind],
)

Type Parameters

Types extends SchemaTypes
ParentShape
Kind extends FieldKind

Properties

builder: PothosSchemaTypes.SchemaBuilder<Types>
graphqlKind: PothosSchemaTypes.PothosKindToGraphQLType[Kind]
kind: Kind

Methods

protected
createField<Type extends TypeParam<Types>, Nullable extends FieldNullability<Type>, Args extends InputFieldMap = { }>(options: PothosSchemaTypes.FieldOptions<Types, ParentShape, Type, Nullable, Args, any, { }> & { resolve?: Resolver<unknown, { }, { }, unknown, unknown>; }): FieldRef<Types, ShapeFromTypeParam<Types, Type, Nullable>, Kind>
protected
exposeField<Type extends TypeParam<Types>, Nullable extends FieldNullability<Type>, Name extends string & keyof ParentShape>(name: Name, unnamed 1: PothosSchemaTypes.ObjectFieldOptions<Types, ParentShape, Type, Nullable, { }, { }>): FieldRef<Types, ShapeFromTypeParam<Types, Type, Nullable>, Kind>