---
lang: en
title: 'API docs: metadata.inspectionoptions.ownmetadataonly'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.inspectionoptions.ownmetadataonly.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [InspectionOptions](./metadata.inspectionoptions.md) &gt; [ownMetadataOnly](./metadata.inspectionoptions.ownmetadataonly.md)

## InspectionOptions.ownMetadataOnly property

Only inspect own metadata of a given target. The prototype chain will not be checked. The implementation uses `Reflect.getOwnMetadata()` if the flag is set to `true`<!-- -->. Otherwise, it uses `Reflect.getMetadata()`<!-- -->.

The flag is `false` by default for `MetadataInspector`<!-- -->.

<b>Signature:</b>

```typescript
ownMetadataOnly?: boolean;
```

