Page Contents
Home > @loopback/context > Context > getResolutionContext
Context.getResolutionContext() method
Locate the resolution context for the given binding. Only bindings in the resolution context and its ancestors are visible as dependencies to resolve the given binding
Signature:
getResolutionContext(binding: Readonly<Binding<unknown>>): Context | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| binding | Readonly<[Binding](/doc/en/lb4/apidocs.context.binding.html)<unknown>> | Binding object |
Returns:
Context | undefined