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>)Type Parameters
Types extends SchemaTypes
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
buildEnum(config: PothosEnumTypeConfig)private
buildFields(fields: Map<string, PothosOutputFieldConfig<Types>>): GraphQLFieldConfigMap<unknown, object>private
buildInputFields(fields: Map<string, PothosInputFieldConfig<Types>>): GraphQLInputFieldConfigMapprivate
buildInputObject(config: PothosInputObjectTypeConfig)private
buildInputTypeParam(type: PothosInputFieldType<Types>): GraphQLInputTypeprivate
buildInterface(config: PothosInterfaceTypeConfig)private
buildObject(config: )private
buildOutputTypeParam(type: PothosOutputFieldType<Types>): GraphQLOutputTypeprivate
buildScalar(config: PothosScalarTypeConfig)private
buildUnion(config: PothosUnionTypeConfig)private
getFields(type: GraphQLNamedType): GraphQLFieldConfigMap<unknown, object>private
getInputFields(type: GraphQLInputObjectType): GraphQLInputFieldConfigMapprivate
getInputType(ref: InputType<Types> | string): GraphQLInputTypeprivate
getInterfaceFields(type: GraphQLInterfaceType): GraphQLFieldConfigMap<unknown, object>private
getObjectFields(type: GraphQLObjectType): GraphQLFieldConfigMap<unknown, object>private
getOutputType(ref: OutputType<Types> | string): GraphQLOutputTypeprivate
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>buildAll()
buildTypeFromConfig(baseConfig: PothosTypeConfig)
getImplementers(iface: GraphQLInterfaceType)
getTypeConfig<T extends PothosTypeConfig["kind"]>(ref: InputType<Types> | OutputType<Types> | string, kind?: T)