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

x/pothos/packages/core/mod.ts>BuildCache

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class BuildCache
Re-export
import { BuildCache } from "https://deno.land/x/pothos@release-1670043728/packages/core/mod.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
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
buildInputFields(fields: Map<string, PothosInputFieldConfig<Types>>): GraphQLInputFieldConfigMap
private
buildInputTypeParam(type: PothosInputFieldType<Types>): GraphQLInputType
private
buildOutputTypeParam(type: PothosOutputFieldType<Types>): GraphQLOutputType
private
getFields(type: GraphQLNamedType): GraphQLFieldConfigMap<unknown, object>
private
getInputFields(type: GraphQLInputObjectType): GraphQLInputFieldConfigMap
private
getInputType(ref: InputType<Types> | string): GraphQLInputType
private
getInterfaceFields(type: GraphQLInterfaceType): GraphQLFieldConfigMap<unknown, object>
private
getObjectFields(type: GraphQLObjectType): GraphQLFieldConfigMap<unknown, object>
private
getOutputType(ref: OutputType<Types> | string): GraphQLOutputType
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)