The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

@graphql-mesh/config

Functions#

Type aliases#

ConfigProcessOptions#

Ƭ ConfigProcessOptions: Object

Type declaration#

NameType
dir?string
ignoreAdditionalResolvers?boolean
importFn?ImportFn
store?MeshStore
syncImportFn?SyncImportFn

Defined in#

packages/config/src/process.ts:32


ProcessedConfig#

Ƭ ProcessedConfig: Object

Type declaration#

NameType
additionalResolversIResolvers[]
additionalTypeDefsDocumentNode[]
cacheKeyValueCache<string\>
codestring
configConfig
documentsSource[]
loggerLogger
mergerMeshMerger
pubsubMeshPubSub
sourcesMeshResolvedSource<any\>[]
storeMeshStore
transformsMeshTransform[]

Defined in#

packages/config/src/process.ts:40

Functions#

getPackage#

getPackage<T\>(__namedParameters): Promise<ResolvedPackage<T\>\>

Type parameters#

Name
T

Parameters#

NameType
__namedParametersGetPackageOptions

Returns#

Promise<ResolvedPackage<T\>\>

Defined in#

packages/config/src/utils.ts:26


processConfig#

processConfig(config, options?): Promise<ProcessedConfig\>

Parameters#

NameType
configConfig
options?ConfigProcessOptions

Returns#

Promise<ProcessedConfig\>

Defined in#

packages/config/src/process.ts:76


resolveAdditionalTypeDefs#

resolveAdditionalTypeDefs(baseDir, additionalTypeDefs): Promise<DocumentNode[]\>

Parameters#

NameType
baseDirstring
additionalTypeDefsstring

Returns#

Promise<DocumentNode[]\>

Defined in#

packages/config/src/utils.ts:66


resolveCache#

resolveCache(cacheConfig?, importFn, rootStore, cwd): Promise<Object\>

Parameters#

NameType
cacheConfigConfig["cache"]
importFnImportFn
rootStoreMeshStore
cwdstring

Returns#

Promise<Object\>

Defined in#

packages/config/src/utils.ts:77


resolveDocuments#

resolveDocuments(documentsConfig, cwd): Promise<Source[]\>

Parameters#

NameType
documentsConfigConfig["documents"]
cwdstring

Returns#

Promise<Source[]\>

Defined in#

packages/config/src/utils.ts:160


resolveLogger#

resolveLogger(loggerConfig, importFn, cwd): Promise<Object\>

Parameters#

NameType
loggerConfigConfig["logger"]
importFnImportFn
cwdstring

Returns#

Promise<Object\>

Defined in#

packages/config/src/utils.ts:171


resolvePubSub#

resolvePubSub(pubsubYamlConfig, importFn, cwd): Promise<Object\>

Parameters#

NameType
pubsubYamlConfigConfig["pubsub"]
importFnImportFn
cwdstring

Returns#

Promise<Object\>

Defined in#

packages/config/src/utils.ts:110