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

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

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

Constructors

new
BuildCache(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
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)