UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

35 lines (22 loc) 927 B
--- lang: en title: 'API docs: repository.modelrepositoryclass._new_' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository permalink: /doc/en/lb4/apidocs.repository.modelrepositoryclass._new_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [ModelRepositoryClass](./repository.modelrepositoryclass.md) &gt; [(new)](./repository.modelrepositoryclass._new_.md) ## ModelRepositoryClass.(new) The constructor for the generated repository class <b>Signature:</b> ```typescript new (dataSource: juggler.DataSource): R; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | dataSource | juggler.DataSource | DataSource object | <b>Returns:</b> R