@loopback/docs
Version:
Documentation for LoopBack 4
21 lines (14 loc) • 584 B
Markdown
lang: en
title: 'API docs: repository.belongstoaccessor'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.belongstoaccessor.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [BelongsToAccessor](./repository.belongstoaccessor.md)
## BelongsToAccessor type
<b>Signature:</b>
```typescript
export declare type BelongsToAccessor<Target extends Entity, SourceId> = (sourceId: SourceId) => Promise<Target>;
```