Core
Framework v2.x
2

constructor #

Copied to clipboard!
new Repository(collection: string, ObjectConstructor?: new (...any) => any): Repository;

Arguments Type Description
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