Page Contents

Home > @loopback/boot > RepositoryBooter

RepositoryBooter class

A class that extends BaseArtifactBooter to boot the ‘Repository’ artifact type. Discovered repositories are bound using app.repository() which must be added to an Application using the RepositoryMixin from @loopback/repository.

Supported phases: configure, discover, load


export declare class RepositoryBooter extends BaseArtifactBooter 

Extends: BaseArtifactBooter


Constructor Modifiers Description
(constructor)(app, projectRoot, repositoryOptions)   Constructs a new instance of the RepositoryBooter class


Property Modifiers Type Description
app   ApplicationWithRepositories  
repositoryOptions   ArtifactOptions  


Method Modifiers Description
load()   Uses super method to get a list of Artifact classes. Boot each class by binding it to the application using app.repository(repository); if present.