MCPcopy
hub / github.com/loopbackio/loopback-next / get

Method get

packages/context/src/context.ts:709–718  ·  view source on GitHub ↗
(
    keyWithPath: BindingAddress<ValueType>,
    optionsOrSession?: ResolutionOptionsOrSession,
  )

Source from the content-addressed store, hash-verified

707
708 // Implementation
709 async get<ValueType>(
710 keyWithPath: BindingAddress<ValueType>,
711 optionsOrSession?: ResolutionOptionsOrSession,
712 ): Promise<ValueType | undefined> {
713 this.debug('Resolving binding: %s', keyWithPath);
714 return this.getValueOrPromise<ValueType | undefined>(
715 keyWithPath,
716 optionsOrSession,
717 );
718 }
719
720 /**
721 * Get the synchronous value bound to the given key, optionally

Callers 6

getCallbackMethod · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
createRequestMethod · 0.95

Calls 2

debugMethod · 0.95
getValueOrPromiseMethod · 0.95

Tested by

no test coverage detected