Module

x/pothos/packages/core/fieldUtils/input.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://dotland.deno.dev/x/pothos@release-1708848346/packages/core/fieldUtils/input.ts";

Create in input field or argument for the current type

Type Parameters

Type extends InputType<Types> | [InputType<Types>]
Req extends FieldRequiredness<Type>

Parameters

options: PothosSchemaTypes.InputFieldOptionsByKind<Types, Type, Req>[Kind]
  • Options for this field