Page Contents
Home > @loopback/context > Context > getConfig
Context.getConfig() method
Resolve configuration for the binding by key
Signature:
getConfig<ConfigValueType>(key: BindingAddress, propertyPath?: string, resolutionOptions?: ResolutionOptions): Promise<ConfigValueType | undefined>;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
key |
Binding key | |
|
propertyPath |
string |
(Optional) Property path for the option. For example, |
|
resolutionOptions |
(Optional) Options for the resolution. |
Returns:
Promise<ConfigValueType | undefined>