Page Contents

Home > @loopback/metadata > NamespacedReflect > getMetadata

NamespacedReflect.getMetadata() method

lookup metadata from a target object and its prototype chain

Signature:

getMetadata(metadataKey: string, target: Object, propertyKey?: string): any;

Parameters

Parameter Type Description
metadataKey string  
target Object  
propertyKey string (Optional)

Returns:

any