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
Go to Latest
type alias ErrorFieldOptions
import { type ErrorFieldOptions } from "https://dotland.deno.dev/x/pothos@release-1713397530/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"
| "resolve"
| "type"
> & { name?: string; }>; }>