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

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [HasManyRepository](./repository.hasmanyrepository.md)

## HasManyRepository interface

CRUD operations for a target repository of a HasMany relation

<b>Signature:</b>

```typescript
export interface HasManyRepository<Target extends Entity> 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [create(targetModelData, options)](./repository.hasmanyrepository.create.md) | Create a target model instance |
|  [delete(where, options)](./repository.hasmanyrepository.delete.md) | Delete multiple target model instances |
|  [find(filter, options)](./repository.hasmanyrepository.find.md) | Find target model instance(s) |
|  [patch(dataObject, where, options)](./repository.hasmanyrepository.patch.md) | Patch multiple target model instances |


