Page Contents

Home > @loopback/metadata > NamespacedReflect > getOwnMetadata

NamespacedReflect.getOwnMetadata() method

get own metadata for a target object or it’s property/method

Signature:

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

Parameters

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

Returns:

any