import { ConfigStore } from "https://deno.land/x/pothos@release-1730496474/packages/core/config-store.ts";
Constructors
new
ConfigStore(builder: PothosSchemaTypes.SchemaBuilder<Types>)Type Parameters
Types extends SchemaTypes
Properties
private
builder: PothosSchemaTypes.SchemaBuilder<Types>private
fields: Map<string, Map<string, PothosFieldConfig<Types>>>private
implementors: Map<string, BaseTypeRef<Types>>private
pendingTypeConfigResolutions: Map<unknown, ((config: PothosTypeConfig, ref: BaseTypeRef<Types>) => void)[]>private
refs: Set<BaseTypeRef<Types>>typeConfigs: Map<string, PothosTypeConfig>
Methods
private
describeRef(ref: unknown): stringprivate
resolveParamAssociations(param: unknown)addFields(param: ConfigurableRef<Types>, fields: () => FieldMap)
addInputFields(param: ConfigurableRef<Types>, fields: () => InputFieldMap)
addTypeRef<T extends PothosTypeConfig>(ref: BaseTypeRef<Types, T>)
associateParamWithRef<T>(param: ConfigurableRef<Types>, ref: BaseTypeRef<Types, T> | string)
getFields<T extends GraphQLFieldKind>(name: string, kind?: T): Map<string, Extract<PothosFieldConfig<Types>, { graphqlKind: T; }>>
getInputTypeRef(param: ConfigurableRef<Types> | string)
getOutputTypeRef(param: ConfigurableRef<Types> | string)
getTypeConfig<T extends PothosTypeConfig["kind"]>(ref: ConfigurableRef<Types> | string, kind?: T)
hasConfig(ref: ConfigurableRef<Types> | string)
hasImplementation(typeName: string)
onPrepare(cb: () => void)
onTypeConfig(param: ConfigurableRef<Types>, onConfig: (config: PothosTypeConfig, ref: BaseTypeRef<Types>) => void)
onTypeConfigOfKind<Kind extends PothosTypeConfig["kind"]>()
param: ConfigurableRef<Types>,
kind: Kind,
onConfig: (config: PothosTypeConfig & { kind: Kind; }) => void,
subscribeToFields(ref: BaseTypeRef<Types>)