UNPKG

@loopback/docs

Version:
36 lines (22 loc) 754 B
--- lang: en title: 'API docs: repository.referencesone' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.repository.referencesone.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [referencesOne](./repository.referencesone.md) ## referencesOne() function Decorator for referencesOne <b>Signature:</b> ```typescript export declare function referencesOne(definition?: Object): PropertyDecorator; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | definition | <code>Object</code> | | <b>Returns:</b> `PropertyDecorator` A property decorator