Page Contents

Home > @loopback/repository > RepositoryMetadata

RepositoryMetadata class

Metadata for a repository


export declare class RepositoryMetadata 


Constructor Modifiers Description
(constructor)(modelOrRepo, dataSource)   Constructor for RepositoryMetadata


Property Modifiers Type Description
dataSource?   juggler.DataSource | DataSource (Optional) Instance of the data source
dataSourceName?   string (Optional) Name of the data source
modelClass?   typeof Entity (Optional) Class of the model
modelName?   string (Optional) Name of the model
name?   string (Optional) Name of the predefined repository