Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/core/utils/input.ts>mapInputFields

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
function mapInputFields
import { mapInputFields } from "https://deno.land/x/pothos@release-1721977283/packages/core/utils/input.ts";

Type Parameters

Types extends SchemaTypes
T

Parameters

inputs: Record<string, PothosInputFieldConfig<Types>>
buildCache: BuildCache<Types>
mapper: (config: PothosInputFieldConfig<Types>) => T | null

Returns

InputFieldsMapping<Types, T> | null