Page Contents
Home > @loopback/context > ConfigurationResolver > getConfigAsValueOrPromise
ConfigurationResolver.getConfigAsValueOrPromise() method
Resolve config for the binding key
Signature:
getConfigAsValueOrPromise<ConfigValueType>(key: BindingAddress<unknown>, propertyPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
key |
BindingAddress<unknown> |
Binding key |
|
propertyPath |
string |
(Optional) Property path for the option. For example, |
|
resolutionOptions |
(Optional) Options for the resolution. - optional: if not set or set to |
Returns:
ValueOrPromise<ConfigValueType | undefined>