You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
Read-only transactions are useful to increase read speed because they can circumvent the usual consensus protocol. Best effort queries can also increase read speed in read bound system. Please note that best effort requires readonly.
160
+
161
+
151
162
### Run a mutation
152
163
153
164
`Txn#mutate(Mutation)` runs a mutation. It takes in a `Mutation` object, which
@@ -182,6 +193,7 @@ mutation must be immediately committed.
182
193
awaittxn.mutate({ setJson: p, commitNow:true });
183
194
```
184
195
196
+
185
197
### Run a query
186
198
187
199
You can run a query by calling `Txn#query(string)`. You will need to pass in a
@@ -229,6 +241,7 @@ Number of people named "Alice": 1
229
241
Alice
230
242
```
231
243
244
+
232
245
### Commit a transaction
233
246
234
247
A transaction can be committed using the `Txn#commit()` method. If your transaction
0 commit comments