---
lang: en
title: 'API docs: repository.defaultcrudrepository.includerelatedmodels'
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.defaultcrudrepository.includerelatedmodels.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [DefaultCrudRepository](./repository.defaultcrudrepository.md) &gt; [includeRelatedModels](./repository.defaultcrudrepository.includerelatedmodels.md)

## DefaultCrudRepository.includeRelatedModels() method

Returns model instances that include related models of this repository that have a registered resolver.

<b>Signature:</b>

```typescript
protected includeRelatedModels(entities: T[], include?: InclusionFilter[], options?: Options): Promise<(T & Relations)[]>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  entities | T\[\] | An array of entity instances or data |
|  include | [InclusionFilter](./filter.inclusionfilter.md)<!-- -->\[\] | Inclusion filter |
|  options | [Options](./repository.options.md) | Options for the operations |

<b>Returns:</b>

Promise&lt;(T &amp; Relations)\[\]&gt;


