Core
Framework v2.x
2

constructor #

new Repository(collection: string, ObjectConstructor?: new (...any) => any): Repository;

ArgumentsTypeDescription
collection
string
The repository's collection to link to this class instance
ObjectConstructor
new (...any) => any
If an ObjectConstructor class is provided, fetched data will be returned as instances of that class, instead of plain objects