Module

x/pothos/packages/core/builder.ts>default#inputType

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
method default.prototype.inputType
import { default } from "https://dotland.deno.dev/x/pothos@release-1713397530/packages/core/builder.ts";

Type Parameters

Param extends InputObjectRef<unknown> | string
Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : Param extends keyof Types["Inputs"] ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap

Parameters

param: Param
options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>

Returns

PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>