Page Contents
Home > @loopback/repository > RepositoryMetadata
RepositoryMetadata class
Metadata for a repository
Signature:
export declare class RepositoryMetadata
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(modelOrRepo, dataSource) | Constructor for RepositoryMetadata |
Properties
| 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 |