File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -88,19 +88,19 @@ to learn more about these methods.
88
88
Example
89
89
-------
90
90
91
+ This example uses the following {+language+} data class to model its documents:
92
+
93
+ .. literalinclude:: /examples/generated/TransactionsTest.snippet.data-class.kt
94
+ :language: kotlin
95
+
91
96
The following example demonstrates how you can create a session, create a transaction,
92
- and commit a changes to existing documents:
97
+ and commit changes to existing documents:
93
98
94
99
1. Create a session from the client using the ``startSession()`` method.
95
100
#. Use the ``startTransaction()`` method to start a transaction.
96
101
#. Update the specified documents, then use the ``commitTransaction()`` method if all
97
102
operations succeed, or ``abortTransaction()`` if any operations fail.
98
103
99
- This example uses the following {+language+} data classes to model its documents:
100
-
101
- .. literalinclude:: /examples/generated/TransactionsTest.snippet.data-class.kt
102
- :language: kotlin
103
-
104
104
.. literalinclude:: /examples/generated/TransactionsTest.snippet.transaction-function.kt
105
105
:language: kotlin
106
106
You can’t perform that action at this time.
0 commit comments