Skip to content

DOCSP-13597 NextGen fix pillstrip intro #5143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/core/read-isolation-consistency-recency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
24 changes: 23 additions & 1 deletion source/core/transactions-in-applications.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,26 @@ 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`.

- 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::
Expand Down Expand Up @@ -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:

Expand Down
11 changes: 9 additions & 2 deletions source/core/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +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

Expand Down
16 changes: 15 additions & 1 deletion source/tutorial/insert-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/project-fields-from-query-results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/query-array-of-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/query-arrays.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/query-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/query-embedded-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/query-for-null-fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/remove-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion source/tutorial/update-documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down