<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Transaction](./firestore_.transaction.md) &gt; [update](./firestore_.transaction.update_1.md)

## Transaction.update() method

<b>Signature:</b>

```typescript
update(documentRef: DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): this;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  documentRef | [DocumentReference](./firestore_.documentreference.md)<!-- -->&lt;unknown&gt; |  |
|  field | string \| [FieldPath](./firestore_.fieldpath.md) |  |
|  value | unknown |  |
|  moreFieldsAndValues | unknown\[\] |  |

<b>Returns:</b>

this

