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

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias ErrorFieldOptions
import { type ErrorFieldOptions } from "https://deno.land/x/pothos@release-1703191169/packages/plugin-errors/types.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"
| "resolve"
| "type"
> & { name?: string; }>; }>