import { FieldBuilder } from "https://deno.land/x/pothos@release-1726524975/packages/core/fieldUtils/builder.ts";
Create a field that resolves to a property of the corresponding type on the parent object
Type Parameters
Type extends TypeParam<Types>
Nullable extends FieldNullability<Type>
Name extends CompatibleTypes<Types, ParentShape, Type, Type extends [unknown] ? { list: true; items: true; } : true>
Parameters
- the name of the property on the source object (does not need to match the field name).
...args: NormalizeArgs<[ExposeNullability<Types, Type, ParentShape, Name, Nullable> & Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, { }, Kind, ParentShape, ResolveReturnShape>, "nullable" | InferredFieldOptionKeys>]>
- Options for this field