Module

x/pothos/packages/core/build-cache.ts>default

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

Constructors

new
default(builder: SchemaBuilder<Types>, options: PothosSchemaTypes.BuildSchemaOptions<Types>)

Properties

private
configStore: ConfigStore<Types>
private
enumValueConfigs: Map<PothosEnumValueConfig<Types>, PothosEnumValueConfig<Types> | null>
private
implementers: Map<string, PothosObjectTypeConfig[]>
private
inputFieldConfigs: Map<PothosInputFieldConfig<Types>, PothosInputFieldConfig<Types> | null>
private
outputFieldConfigs: Map<PothosOutputFieldConfig<Types>, PothosOutputFieldConfig<Types> | null>
private
pluginList: BasePlugin<Types>[]
private
pluginMap: PluginMap<Types>
private
typeConfigs: Map<string, PothosTypeConfig>
builder: PothosSchemaTypes.SchemaBuilder<Types>
options: PothosSchemaTypes.BuildSchemaOptions<Types>
plugin: BasePlugin<Types>
types: Map<string, GraphQLNamedType>

Methods

private
addType(ref: string, type: GraphQLNamedType)
private
buildFields(fields: Map<string, PothosOutputFieldConfig<Types>>): GraphQLFieldConfigMap<unknown, object>
private
getFields(type: GraphQLNamedType): GraphQLFieldConfigMap<unknown, object>
private
getRootFields(type: GraphQLObjectType): GraphQLFieldConfigMap<unknown, object>
private
getType(ref: InputType<Types> | OutputType<Types> | string)
private
getTypeOfKind<T extends PothosTypeKind>(ref: InputType<Types> | OutputType<Types> | string, kind: T): PothosKindToGraphQLTypeClass<T>
getTypeConfig<T extends PothosTypeConfig["kind"]>(ref: InputType<Types> | OutputType<Types> | string, kind?: T)