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