@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (24 loc) • 1.42 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
<b>Signature:</b>
```typescript
static getAllMethodMetadata<T>(key: MetadataKey<T, MethodDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | [MetadataKey](./metadata.metadatakey.md)<!-- --><T, MethodDecorator> | Metadata key |
| target | Object | Class for static methods or prototype for instance methods |
| options | [InspectionOptions](./metadata.inspectionoptions.md) | Options for inspection |
<b>Returns:</b>
[MetadataMap](./metadata.metadatamap.md)<!-- --><T> \| undefined