Page Contents
Home > @loopback/metadata > MetadataInspector > getAllParameterMetadata
MetadataInspector.getAllParameterMetadata() method
Get the metadata associated with the given key for all parameters of a given method
Signature:
static getAllParameterMetadata<T>(key: MetadataKey<T, ParameterDecorator>, target: Object, methodName?: string, options?: InspectionOptions): T[] | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| key | [MetadataKey](/doc/en/lb4/apidocs.metadata.metadatakey.html)<T, ParameterDecorator> | Metadata key |
| target | Object | Class for static methods or prototype for instance methods |
| methodName | string | _(Optional)_ Method name. If not present, default to '' to use the constructor |
| options | [InspectionOptions](/doc/en/lb4/apidocs.metadata.inspectionoptions.html) | _(Optional)_ Options for inspection |
Returns:
T[] | undefined