@textile/hub > Client > writeTransaction
Client.writeTransaction() method
writeTransaction creates a new writeable transaction object. See WriteTransaction for details.
Signature:
writeTransaction(threadID: ThreadID, collectionName: string): WriteTransaction;
Parameters
| Parameter | Type | Description |
|---|---|---|
| threadID | ThreadID | the ID of the database |
| collectionName | string | The human-readable name of the model to use. |
Returns: