Page Contents

Home > @loopback/repository > ModelRepositoryClass

ModelRepositoryClass interface

Signature for a Repository class bound to a given model. The constructor accepts only the dataSource to use for persistence.

define* functions return a class implementing this interface.


export interface ModelRepositoryClass<M extends Model, R extends Repository<M>> 


Property Modifiers Type Description
prototype   R  


Method Description
(new)(dataSource) The constructor for the generated repository class