# Repository.update() method · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.repository.update/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Update a row by id and return it.

**Signature:**

```typescript
update<Row = Entity, Input extends {
        id: string;
    } = {
        id: string;
    }>(args: {
        input: Input;
        select?: Select | undefined;
    }): Promise<Row>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| args | { input: Input; select?: [Select](https://imqueue.org/api/pg-prisma/latest/pg-prisma.select/) \| undefined; } |  |


**Returns:**

Promise<Row>

