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

x/pothos/packages/core/fieldUtils/root.ts>default#field

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

create a new field for the current type

Type Parameters

Args extends InputFieldMap
Type extends TypeParam<Types>
ResolveShape
ResolveReturnShape
optional
Nullable extends FieldNullability<Type> = Types["DefaultFieldNullability"]

Parameters

options: FieldOptionsFromKind<Types, ParentShape, Type, Nullable, Args, Kind, ResolveShape, ResolveReturnShape>
  • options for this field