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

x/pothos/packages/plugin-errors/mod.ts>ErrorFieldOptions

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
type alias ErrorFieldOptions
import { type ErrorFieldOptions } from "https://deno.land/x/pothos@release-1730496474/packages/plugin-errors/mod.ts";

Type Parameters

Types extends SchemaTypes
Type extends TypeParam<Types>
Shape
Nullable extends FieldNullability<Type>
definition: EmptyToOptional<{ types?: (new (...args: any[]) => Error)[]; directResult?: Type extends unknown[] ? false : boolean; union: Normalize<Omit<PothosSchemaTypes.UnionTypeOptions<Types>, "resolveType" | "types"> & { name?: string; }>; result: Normalize<Omit<PothosSchemaTypes.ObjectTypeOptions<Types, Shape>, "interfaces" | "isTypeOf"> & { name?: string; }>; dataField: Normalize<Omit<PothosSchemaTypes.ObjectFieldOptions<Types, Shape, Type, Type extends [unknown] ? { list: false; items: Nullable extends { items: boolean; } ? Nullable["items"] : true; } : false, { }, Shape>,
| "args"
| "nullable"
| "type"
> & { name?: string; }>; }>