Skip to main content

@graphql-mesh/config

Functions#

Type aliases#

ConfigProcessOptions#

Ƭ ConfigProcessOptions: object

Type declaration:#

NameType
dir?string
ignoreAdditionalResolvers?boolean
ignoreIntrospectionCache?boolean
importFn?(moduleId: string) => Promise<any\>

Defined in: packages/config/src/index.ts:28


ProcessedConfig#

Ƭ ProcessedConfig: object

Type declaration:#

NameType
additionalResolversIResolvers
additionalTypeDefsDocumentNode[]
cacheKeyValueCache<string\>
configConfig
introspectionCacheRecord<string, any\>
liveQueryInvalidationsLiveQueryInvalidation[]
mergerMergerFn
mergerTypestring
pubsubMeshPubSub
sourcesMeshResolvedSource<any\>[]
transformsMeshTransform[]

Defined in: packages/config/src/index.ts:59

Functions#

findAndParseConfig#

findAndParseConfig(options?: { configName?: string } & ConfigProcessOptions): Promise<ProcessedConfig\>

Parameters:#

NameType
options?{ configName?: string } & ConfigProcessOptions

Returns: Promise<ProcessedConfig\>

Defined in: packages/config/src/index.ts:225


parseConfig#

parseConfig(rawConfig: Config | string, options?: { configFormat?: yaml | json | object } & ConfigProcessOptions): Promise<ProcessedConfig\>

Parameters:#

NameType
rawConfigConfig | string
options?{ configFormat?: yaml | json | object } & ConfigProcessOptions

Returns: Promise<ProcessedConfig\>

Defined in: packages/config/src/index.ts:36


processConfig#

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

Parameters:#

NameType
configConfig
options?ConfigProcessOptions

Returns: Promise<ProcessedConfig\>

Defined in: packages/config/src/index.ts:73


validateConfig#

validateConfig(config: any): asserts config is Config

Parameters:#

NameType
configany

Returns: asserts config is Config

Defined in: packages/config/src/index.ts:213