Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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://deno.land/x/pothos@release-1719071157/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