@graphql-mesh/config

Functions#

Type aliases#

ConfigProcessOptions#

Ƭ ConfigProcessOptions: { dir?: string ; ignoreAdditionalResolvers?: boolean ; importFn?: (moduleId: string) => Promise<any\> }

Type declaration:#

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

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


ProcessedConfig#

Ƭ ProcessedConfig: { additionalResolvers: IResolvers ; additionalTypeDefs: DocumentNode[] ; cache: KeyValueCache<string\> ; config: Config ; merger: MergerFn ; mergerType: string ; pubsub: MeshPubSub ; sources: MeshResolvedSource<any\>[] ; transforms: MeshTransform[] }

Type declaration:#

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

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

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:207


parseConfig#

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

Parameters:#

NameType
rawConfigConfig
options?{ configFormat?: yaml

Returns: Promise<ProcessedConfig\>

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


processConfig#

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

Parameters:#

NameType
configConfig
options?ConfigProcessOptions

Returns: Promise<ProcessedConfig\>

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


validateConfig#

validateConfig(config: any): asserts config is Config

Parameters:#

NameType
configany

Returns: asserts config is Config

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