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<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

(Optional) Options for inspection

Returns:

T[] | undefined