@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
97 lines (48 loc) • 1.78 kB
Markdown
---
lang: en
title: 'API docs: metadata.metadatainspector.getallmethodmetadata'
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.metadatainspector.getallmethodmetadata.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [MetadataInspector](./metadata.metadatainspector.md) > [getAllMethodMetadata](./metadata.metadatainspector.getallmethodmetadata.md)
## MetadataInspector.getAllMethodMetadata() method
Get the metadata associated with the given key for all methods of the target class or prototype
**Signature:**
```typescript
static getAllMethodMetadata<T>(key: MetadataKey<T, MethodDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
key
</td><td markdown="1">
[MetadataKey](./metadata.metadatakey.md)<!-- --><T, MethodDecorator>
</td><td markdown="1">
Metadata key
</td></tr>
<tr><td markdown="1">
target
</td><td markdown="1">
Object
</td><td markdown="1">
Class for static methods or prototype for instance methods
</td></tr>
<tr><td markdown="1">
options
</td><td markdown="1">
[InspectionOptions](./metadata.inspectionoptions.md)
</td><td markdown="1">
_(Optional)_ Options for inspection
</td></tr>
</tbody></table>
**Returns:**
[MetadataMap](./metadata.metadatamap.md)<!-- --><T> \| undefined