@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (24 loc) • 1.03 kB
Markdown
lang: en
title: 'API docs: metadata.namespacedreflect.getownmetadata'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.namespacedreflect.getownmetadata.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [NamespacedReflect](./metadata.namespacedreflect.md) > [getOwnMetadata](./metadata.namespacedreflect.getownmetadata.md)
## NamespacedReflect.getOwnMetadata() method
get own metadata for a target object or it's property/method
<b>Signature:</b>
```typescript
getOwnMetadata(metadataKey: string, target: Object, propertyKey?: string): any;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| metadataKey | string | |
| target | Object | |
| propertyKey | string | |
<b>Returns:</b>
any