diff --git a/source/core/read-isolation-consistency-recency.txt b/source/core/read-isolation-consistency-recency.txt index bfbc790dfa8..8446144380c 100644 --- a/source/core/read-isolation-consistency-recency.txt +++ b/source/core/read-isolation-consistency-recency.txt @@ -270,6 +270,15 @@ document with the old ``sku`` value needs to be updated with the ``sku`` value. The client can use a causally consistent session to ensure that the update occurs before the insert. +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of this example. + +---------- + .. tabs-pillstrip:: languages .. tabs-drivers:: diff --git a/source/core/transactions-in-applications.txt b/source/core/transactions-in-applications.txt index 733bdd8d426..8393cd15028 100644 --- a/source/core/transactions-in-applications.txt +++ b/source/core/transactions-in-applications.txt @@ -42,7 +42,7 @@ The :ref:`txn-core-api`: Callback API ------------- -The new callback API incorporates logic: +The callback API incorporates logic: - To retry the transaction as a whole if the transaction encounters a :ref:`transient-transaction-error`. @@ -50,6 +50,18 @@ The new callback API incorporates logic: - To retry the commit operation if the commit encounters an :ref:`unknown-transaction-commit-result`. +Example +~~~~~~~ + +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the examples on this page. + +---------- + .. tabs-pillstrip:: languages .. tabs-drivers:: @@ -328,6 +340,16 @@ labeled: To handle :ref:`unknown-transaction-commit-result`, applications should explicitly incorporate retry logic for the error. +Example +~~~~~~~ + +---------- + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the examples on this page. + +---------- + The following example incorporates logic to retry the transaction for transient errors and retry the commit for unknown commit error: diff --git a/source/core/transactions.txt b/source/core/transactions.txt index cb37e25f713..550000b1f4c 100644 --- a/source/core/transactions.txt +++ b/source/core/transactions.txt @@ -31,8 +31,16 @@ databases, documents, and shards. Transactions API ---------------- -The following example highlights the key components -of the transactions API: +This example highlights the key components of the transactions API. + +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following example. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/insert-documents.txt b/source/tutorial/insert-documents.txt index 7c83344a226..707d1c940dd 100644 --- a/source/tutorial/insert-documents.txt +++ b/source/tutorial/insert-documents.txt @@ -13,7 +13,14 @@ Insert Documents :description: Insert documents using MongoDB. Creates collection upon first insert. :keywords: insert documents, create documents, insert into collection, create collection -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the examples on this page. + +---------- .. tabs-pillstrip:: languages @@ -331,6 +338,13 @@ To retrieve the document that you just inserted, :ref:`query the collection Insert Multiple Documents ------------------------- +---------- + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the examples on this page. + +---------- + .. tabs-drivers:: tabs: diff --git a/source/tutorial/project-fields-from-query-results.txt b/source/tutorial/project-fields-from-query-results.txt index 66823644e92..c1b7bf8704d 100644 --- a/source/tutorial/project-fields-from-query-results.txt +++ b/source/tutorial/project-fields-from-query-results.txt @@ -11,7 +11,14 @@ Project Fields to Return from Query .. default-domain:: mongodb -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/query-array-of-documents.txt b/source/tutorial/query-array-of-documents.txt index 6d10c84e363..8782d093945 100644 --- a/source/tutorial/query-array-of-documents.txt +++ b/source/tutorial/query-array-of-documents.txt @@ -13,7 +13,14 @@ Query an Array of Embedded Documents :description: MongoDB Manual - how to query an array of documents, how to query an array of nested documents, how to query an array of embedded documents. :keywords: array of nested documents, array of embedded documents, array of documents, nested documents, array index, select, array, array elements, array items -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/query-arrays.txt b/source/tutorial/query-arrays.txt index 77224e17134..073450d9cb7 100644 --- a/source/tutorial/query-arrays.txt +++ b/source/tutorial/query-arrays.txt @@ -13,7 +13,14 @@ Query an Array :description: MongoDB Manual - How to query an array: query on the array field as a whole, check if element in array, query for array element, query if field in array, query by array size. :keywords: array, array elements, array items, queries, select, MongoDB Manual, query an array, query for items in array -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/query-documents.txt b/source/tutorial/query-documents.txt index 768a44b3cfd..b0edd5e902d 100644 --- a/source/tutorial/query-documents.txt +++ b/source/tutorial/query-documents.txt @@ -14,7 +14,14 @@ Query Documents :description: MongoDB Manual. How do I query documents, query top level fields, perform equality match, query with query operators, specify compound query conditions. :keywords: query, select from collection, select all, select conditions, filters, select where, criteria, greater than, less than, MongoDB Manual -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/query-embedded-documents.txt b/source/tutorial/query-embedded-documents.txt index f83f9fec8ba..9c9c951b8da 100644 --- a/source/tutorial/query-embedded-documents.txt +++ b/source/tutorial/query-embedded-documents.txt @@ -14,7 +14,14 @@ Query on Embedded/Nested Documents :description: MongoDB Manual: How to query on embedded documents/nested documents/subdocuments/nested fields. Query/select by embedded documents/nested fields/subdocuments. :keywords: filter on embedded documents, nested documents, subdocuments, nested fields, field is embedded document, queries, select, MongoDB, greater than, logical AND, compound conditions, select from collection -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/query-for-null-fields.txt b/source/tutorial/query-for-null-fields.txt index 2b899a53620..98d7c670d2a 100644 --- a/source/tutorial/query-for-null-fields.txt +++ b/source/tutorial/query-for-null-fields.txt @@ -9,7 +9,14 @@ Query for Null or Missing Fields .. default-domain:: mongodb -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/remove-documents.txt b/source/tutorial/remove-documents.txt index aebb9c437b2..23d3348509d 100644 --- a/source/tutorial/remove-documents.txt +++ b/source/tutorial/remove-documents.txt @@ -13,7 +13,14 @@ Delete Documents :description: MongoDB Manual: How to delete documents in MongoDB. How to remove documents in MongoDB. How to specify conditions for removing or deleting documents in MongoDB. :keywords: delete from collection, remove documents from collection, delete documents from collection, MongoDB Manual -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. tabs-pillstrip:: languages diff --git a/source/tutorial/update-documents.txt b/source/tutorial/update-documents.txt index 9af81489c13..9f30a20332f 100644 --- a/source/tutorial/update-documents.txt +++ b/source/tutorial/update-documents.txt @@ -13,7 +13,14 @@ Update Documents :description: How to update documents in MongoDB. How to update a single document in MongoDB. How to update multiple documents in MongoDB. How to update all documents in MongoDB. How to update fields in documents in MongoDB. How to replace documents. :keywords: update documents, update all documents, update single document, modify documents, update fields in documents, update collection, MongoDB Manual -This page provides examples in: +---------- + +.. |arrow| unicode:: U+27A4 + +|arrow| Use the **Select your language** drop-down menu in the +upper-right to set the language of the following examples. + +---------- .. |populate-inventory| replace:: The examples on this page use the ``inventory`` collection. To create and/or populate the