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

x/pothos/packages/core/index.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-1693334611/packages/core/index.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>>; pothosOptions: FieldOptionsFromKind<Types, unknown, TypeParam<Types>, FieldNullability<[unknown]>, InputFieldMap, K, unknown, unknown>; }>[Kind]