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

Method deleteMetadata

packages/metadata/src/reflect.ts:97–107  ·  view source on GitHub ↗
(
    metadataKey: string,
    target: Object,
    propertyKey?: string,
  )

Source from the content-addressed store, hash-verified

95 }
96
97 deleteMetadata(
98 metadataKey: string,
99 target: Object,
100 propertyKey?: string,
101 ): boolean {
102 metadataKey = this.getMetadataKey(metadataKey);
103 if (propertyKey) {
104 return Reflect.deleteMetadata(metadataKey, target, propertyKey);
105 }
106 return Reflect.deleteMetadata(metadataKey, target);
107 }
108
109 getMetadataKeys(target: Object, propertyKey?: string): string[] {
110 let keys: string[];

Callers 2

runTestsFunction · 0.80
deleteMetadataFunction · 0.80

Calls 1

getMetadataKeyMethod · 0.95

Tested by 2

runTestsFunction · 0.64
deleteMetadataFunction · 0.64