constructor
#
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 |
Edit this page on Github(opens new window)