---
lang: en
title: 'API docs: repository.defaultbelongstorepository.constraint'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.defaultbelongstorepository.constraint.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [DefaultBelongsToRepository](./repository.defaultbelongstorepository.md) &gt; [constraint](./repository.defaultbelongstorepository.constraint.md)

## DefaultBelongsToRepository.constraint property

<b>Signature:</b>

```typescript
constraint: DataObject<TargetEntity>;
```

