Module

x/pothos/packages/core/mod.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://dotland.deno.dev/x/pothos@release-1713397530/packages/core/mod.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]