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

Method deepProperty

packages/context/src/binding-key.ts:58–63  ·  view source on GitHub ↗

* Get a binding address for retrieving a deep property of the object * bound to the current binding key. * * @param propertyPath - A dot-separated path to a (deep) property, e.g. "server.port".

(propertyPath: string)

Source from the content-addressed store, hash-verified

56 * @param propertyPath - A dot-separated path to a (deep) property, e.g. "server.port".
57 */
58 deepProperty<PropertyValueType>(propertyPath: string) {
59 // TODO(bajtos) allow chaining of propertyPaths, e.g.
60 // BindingKey.create('config', 'rest').deepProperty('port')
61 // should create {key: 'config', path: 'rest.port'}
62 return BindingKey.create<PropertyValueType>(this.key, propertyPath);
63 }
64
65 /**
66 * Validate the binding key format. Please note that `#` is reserved.

Callers 7

keys.tsFile · 0.80
valueMethod · 0.80
valueMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
keys.tsFile · 0.80

Calls 1

createMethod · 0.65

Tested by

no test coverage detected