text: <!-- 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; [set](./firestore_.transaction.set_1.md)
  
  ## Transaction.set() method
  
  <b>Signature:</b>
  
  ```typescript
  set<T>(
      documentRef: DocumentReference<T>,
      data: Partial<T>,
      options: SetOptions
    ): Transaction;
  ```
  
  ## Parameters
  
  |  Parameter | Type | Description |
  |  --- | --- | --- |
  |  documentRef | [DocumentReference](./firestore_.documentreference.md)<!-- -->&lt;T&gt; |  |
  |  data | Partial&lt;T&gt; |  |
  |  options | [SetOptions](./firestore_.setoptions.md) |  |
  
  <b>Returns:</b>
  
  [Transaction](./firestore_.transaction.md)
  
  