diff --git a/source/crud/transactions.txt b/source/crud/transactions.txt index 4349208aa..d6c238d65 100644 --- a/source/crud/transactions.txt +++ b/source/crud/transactions.txt @@ -47,18 +47,6 @@ ACID transactions `. Operations ` section in the Server manual. -In MongoDB, multi-document transactions run within a **client session**. -A client session is a grouping of related read or write operations that -you want to execute sequentially. We recommend you reuse -your client for multiple sessions and transactions instead of -instantiating a new client each time. - -When combined with ``majority`` read and -write concerns, the driver guarantees causal consistency between the -operations. To learn more, see :manual:`Client Sessions and Causal Consistency Guarantees -` in the -Server manual. - Learn more about how to use the driver to perform multi-document transactions in the following sections of this guide: @@ -66,6 +54,37 @@ transactions in the following sections of this guide: - :ref:`Transaction Options ` - :ref:`Transaction Errors ` +.. _nodejs-causal-consistency: + +Causal Consistency +~~~~~~~~~~~~~~~~~~ + +.. sharedinclude:: dbx/causal-consistency.rst + + .. replacement:: insert-one-method + + ``insertOne()`` + + .. replacement:: update-one-method + + ``updateOne()`` + + .. replacement:: find-one-method + + ``findOne()`` + + .. replacement:: delete-one-method + + ``deleteOne()`` + + .. replacement:: majority-rc + + ``majority`` + + .. replacement:: majority-wc + + ``majority`` + .. _nodejs-transaction-apis: Transaction APIs