Page Contents

Home > @loopback/metadata > MetadataInspector > getAllPropertyMetadata

MetadataInspector.getAllPropertyMetadata() method

Get the metadata associated with the given key for all properties of the target class or prototype


static getAllPropertyMetadata<T>(key: MetadataKey<T, PropertyDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined;


Parameter Type Description
key MetadataKey<T, PropertyDecorator> Metadata key
target Object Class for static methods or prototype for instance methods
options InspectionOptions (Optional) Options for inspection


MetadataMap<T> | undefined