MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / getTargetBindingKey

Function getTargetBindingKey

packages/context/src/inject-config.ts:140–142  ·  view source on GitHub ↗

* Get the target binding key from which the configuration should be resolved * @param injection - Injection * @param session - Resolution session

(injection: Injection, session: ResolutionSession)

Source from the content-addressed store, hash-verified

138 * @param session - Resolution session
139 */
140function getTargetBindingKey(injection: Injection, session: ResolutionSession) {
141 return injection.metadata.fromBinding || getCurrentBindingKey(session);
142}
143
144/**
145 * Resolver for `@config`

Callers 3

resolveFromConfigFunction · 0.85
resolveAsViewFromConfigFunction · 0.85

Calls 1

getCurrentBindingKeyFunction · 0.85

Tested by

no test coverage detected