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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [BelongsToRepository](./repository.belongstorepository.md) &gt; [get](./repository.belongstorepository.get.md)

## BelongsToRepository.get() method

Gets the target model instance

**Signature:**

```typescript
get(options?: Options & {
        polymorphicType?: string | string[];
    }): Promise<Target>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  options | [Options](./repository.options.md) &amp; { polymorphicType?: string \| string\[\]; } | _(Optional)_ options.polymorphicType - a string or a string array of polymorphic type names to specify which repositories should are expected to be searched It is highly recommended to contain this param especially for datasources using deplicated ids across tables |

**Returns:**

Promise&lt;Target&gt;

A promise resolved with the target object or rejected with an EntityNotFoundError when target model instance was not found.


