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<unknown>> Binding object

Returns:

Context | undefined