Skip to main content
Module

x/pothos/packages/core/fieldUtils/root.ts>RootFieldBuilder#id

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
method RootFieldBuilder.prototype.id
import { RootFieldBuilder } from "https://deno.land/x/pothos@release-1720765432/packages/core/fieldUtils/root.ts";

Create a ID field

Type Parameters

Nullable extends FieldNullability<"ID">
ResolveShape
ResolveReturnShape
optional
Args extends InputFieldMap = { }

Parameters

...args: NormalizeArgs<[Omit<FieldOptionsFromKind<Types, ParentShape, "ID", Nullable, Args, Kind, ResolveShape, ResolveReturnShape>, "type">]>
  • Options for this field