---
lang: en
title: 'API docs: repository.belongstodefinition'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.belongstodefinition.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [BelongsToDefinition](./repository.belongstodefinition.md)

## BelongsToDefinition interface

<b>Signature:</b>

```typescript
export interface BelongsToDefinition extends RelationDefinitionBase 
```
<b>Extends:</b> [RelationDefinitionBase](./repository.relationdefinitionbase.md)

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [keyFrom?](./repository.belongstodefinition.keyfrom.md) | string | <i>(Optional)</i> |
|  [keyTo?](./repository.belongstodefinition.keyto.md) | string | <i>(Optional)</i> |
|  [targetsMany](./repository.belongstodefinition.targetsmany.md) | false |  |
|  [type](./repository.belongstodefinition.type.md) | [RelationType.belongsTo](./repository.relationtype.md) |  |


