Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Constructors

new
default(
name: string,
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
typename: string

Methods

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