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

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [RelationDefinitionBase](./repository.relationdefinitionbase.md) &gt; [targetsMany](./repository.relationdefinitionbase.targetsmany.md)

## RelationDefinitionBase.targetsMany property

True for relations targeting multiple instances (e.g. HasMany), false for relations with a single target (e.g. BelongsTo, HasOne). This property is needed by OpenAPI/JSON Schema generator.

<b>Signature:</b>

```typescript
targetsMany?: boolean;
```

