Skip to main content
Module

x/pothos/packages/core/types/configs.ts>PothosFieldKindToConfig

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias PothosFieldKindToConfig
import { type PothosFieldKindToConfig } from "https://deno.land/x/pothos@release-1720638912/packages/core/types/configs.ts";

Type Parameters

Types extends SchemaTypes
Kind extends FieldKind
definition: [K in FieldKind]: Merge<Omit<GraphQLFieldConfig<unknown, object>, "args" | "type"> & { kind: K; graphqlKind: PothosSchemaTypes.PothosKindToGraphQLType[K]; parentType: string; name: string; type: PothosOutputFieldType<Types>; args: Record<string, PothosInputFieldConfig<Types>>; argMappers: ((
args: Record<string, unknown>,
context: Types["Context"],
) => Record<string, unknown>)[]; pothosOptions: FieldOptionsFromKind<Types, unknown, TypeParam<Types>, FieldNullability<[unknown]>, InputFieldMap, K, unknown, unknown> & MergeUnion<[K in keyof PothosSchemaTypes.InferredFieldOptions<SchemaTypes>]: PothosSchemaTypes.InferredFieldOptions<SchemaTypes>[K][keyof PothosSchemaTypes.InferredFieldOptions<SchemaTypes>]>; }>[Kind]