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

Method getMetadata

packages/metadata/src/reflect.ts:44–50  ·  view source on GitHub ↗

* lookup metadata from a target object and its prototype chain

(metadataKey: string, target: Object, propertyKey?: string)

Source from the content-addressed store, hash-verified

42 * lookup metadata from a target object and its prototype chain
43 */
44 getMetadata(metadataKey: string, target: Object, propertyKey?: string): any {
45 metadataKey = this.getMetadataKey(metadataKey);
46 if (propertyKey) {
47 return Reflect.getMetadata(metadataKey, target, propertyKey);
48 }
49 return Reflect.getMetadata(metadataKey, target);
50 }
51
52 /**
53 * get own metadata for a target object or it's property/method

Callers 12

hasInjectionsFunction · 0.80
decorateMethod · 0.80
getClassMetadataMethod · 0.80
getAllMethodMetadataMethod · 0.80
getMethodMetadataMethod · 0.80
getPropertyMetadataMethod · 0.80
getParameterMetadataMethod · 0.80
runTestsFunction · 0.80

Calls 1

getMetadataKeyMethod · 0.95

Tested by 1

runTestsFunction · 0.64