---
url: /api/orm/objection/types/decorators/decorator-has-one.md
description: api documentation of HasOne from @tsed/objection
---

## Usage

```typescript
import { HasOne } from "@tsed/objection";
```

> See [/packages/orm/objection/src/decorators/hasOne.ts](https://github.com/tsedio/tsed/blob/v8.46.3/packages/orm/objection/src/decorators/hasOne.ts#L0-L0).

## Overview

```ts
function HasOne(opts?: RelationshipOptsWithoutThrough): PropertyDecorator;
```
