diff --git a/source/tutorial/insert-documents.txt b/source/tutorial/insert-documents.txt index 6ef7460ce23..422e45852a4 100644 --- a/source/tutorial/insert-documents.txt +++ b/source/tutorial/insert-documents.txt @@ -13,6 +13,11 @@ Insert Documents :description: Insert documents using MongoDB. Creates collection upon first insert. :keywords: insert documents, create documents, insert into collection, create collection +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/project-fields-from-query-results.txt b/source/tutorial/project-fields-from-query-results.txt index d34777d4213..e9ad210f384 100644 --- a/source/tutorial/project-fields-from-query-results.txt +++ b/source/tutorial/project-fields-from-query-results.txt @@ -11,6 +11,11 @@ Project Fields to Return from Query .. default-domain:: mongodb +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/query-array-of-documents.txt b/source/tutorial/query-array-of-documents.txt index 2632679161f..d2734cb5934 100644 --- a/source/tutorial/query-array-of-documents.txt +++ b/source/tutorial/query-array-of-documents.txt @@ -13,6 +13,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/query-arrays.txt b/source/tutorial/query-arrays.txt index cf62f407437..d57318cc2ea 100644 --- a/source/tutorial/query-arrays.txt +++ b/source/tutorial/query-arrays.txt @@ -13,6 +13,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/query-documents.txt b/source/tutorial/query-documents.txt index 76b7a237e6d..09f41039016 100644 --- a/source/tutorial/query-documents.txt +++ b/source/tutorial/query-documents.txt @@ -14,6 +14,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/query-embedded-documents.txt b/source/tutorial/query-embedded-documents.txt index b3436adb62c..c001c4c5332 100644 --- a/source/tutorial/query-embedded-documents.txt +++ b/source/tutorial/query-embedded-documents.txt @@ -14,6 +14,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/query-for-null-fields.txt b/source/tutorial/query-for-null-fields.txt index fbe27b9e2c9..4c82de867fa 100644 --- a/source/tutorial/query-for-null-fields.txt +++ b/source/tutorial/query-for-null-fields.txt @@ -9,6 +9,11 @@ Query for Null or Missing Fields .. default-domain:: mongodb +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 diff --git a/source/tutorial/remove-documents.txt b/source/tutorial/remove-documents.txt index 09c11ce6368..8f9951abf08 100644 --- a/source/tutorial/remove-documents.txt +++ b/source/tutorial/remove-documents.txt @@ -13,6 +13,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4 @@ -170,15 +175,15 @@ upper-right to set the language of the following examples. .. _write-op-deleteMany: +Delete All Documents +-------------------- + .. tabs-drivers:: tabs: - id: shell content: | - Delete All Documents - -------------------- - To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the :method:`db.collection.deleteMany()` method. @@ -187,8 +192,6 @@ upper-right to set the language of the following examples. - id: python content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the @@ -198,8 +201,6 @@ upper-right to set the language of the following examples. - id: motor content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the @@ -210,8 +211,6 @@ upper-right to set the language of the following examples. - id: java-sync content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty org.bson.Document_ object as the @@ -222,8 +221,6 @@ upper-right to set the language of the following examples. - id: java-async content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty org.bson.Document_ object as the @@ -236,8 +233,6 @@ upper-right to set the language of the following examples. - id: nodejs content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the @@ -248,8 +243,6 @@ upper-right to set the language of the following examples. - id: php content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``[]`` to the @@ -260,8 +253,6 @@ upper-right to set the language of the following examples. - id: perl content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the @@ -272,8 +263,6 @@ upper-right to set the language of the following examples. - id: ruby content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document ``{}`` to the @@ -284,8 +273,6 @@ upper-right to set the language of the following examples. - id: scala content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` ``Document()`` to the @@ -296,8 +283,6 @@ upper-right to set the language of the following examples. - id: csharp content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` @@ -309,8 +294,6 @@ upper-right to set the language of the following examples. - id: go content: | - Delete All Documents - -------------------- To delete all documents from a collection, pass an empty :ref:`filter` document to the @@ -322,13 +305,14 @@ upper-right to set the language of the following examples. .. include:: /includes/driver-examples/driver-example-delete-result.rst +Delete All Documents that Match a Condition +------------------------------------------- + .. tabs-drivers:: tabs: - id: shell content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -344,8 +328,6 @@ upper-right to set the language of the following examples. - id: python content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -361,8 +343,6 @@ upper-right to set the language of the following examples. - id: motor content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -379,8 +359,6 @@ upper-right to set the language of the following examples. - id: java-sync content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -396,8 +374,6 @@ upper-right to set the language of the following examples. - id: java-async content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -415,8 +391,6 @@ upper-right to set the language of the following examples. - id: nodejs content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -433,8 +407,6 @@ upper-right to set the language of the following examples. - id: php content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -451,8 +423,6 @@ upper-right to set the language of the following examples. - id: perl content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -469,8 +439,6 @@ upper-right to set the language of the following examples. - id: ruby content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -487,8 +455,6 @@ upper-right to set the language of the following examples. - id: scala content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -505,8 +471,6 @@ upper-right to set the language of the following examples. - id: csharp content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -523,8 +487,6 @@ upper-right to set the language of the following examples. - id: go content: | - Delete All Documents that Match a Condition - ------------------------------------------- .. include:: /includes/fact-delete-condition-inventory.rst @@ -542,13 +504,14 @@ upper-right to set the language of the following examples. .. include:: /includes/driver-examples/driver-example-delete-result.rst +Delete Only One Document that Matches a Condition +------------------------------------------------- + .. tabs-drivers:: tabs: - id: shell content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -558,8 +521,6 @@ upper-right to set the language of the following examples. - id: compass content: | - Delete a Single Document - ------------------------ MongoDB Compass provides a simple way to delete a document from a collection. The following example shows how to delete @@ -580,8 +541,6 @@ upper-right to set the language of the following examples. - id: python content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -592,8 +551,6 @@ upper-right to set the language of the following examples. - id: motor content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -605,8 +562,6 @@ upper-right to set the language of the following examples. - id: java-sync content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -617,8 +572,6 @@ upper-right to set the language of the following examples. - id: java-async content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -630,8 +583,6 @@ upper-right to set the language of the following examples. - id: nodejs content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -643,8 +594,6 @@ upper-right to set the language of the following examples. - id: php content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -656,8 +605,6 @@ upper-right to set the language of the following examples. - id: perl content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -669,8 +616,6 @@ upper-right to set the language of the following examples. - id: ruby content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -682,8 +627,6 @@ upper-right to set the language of the following examples. - id: csharp content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -695,8 +638,6 @@ upper-right to set the language of the following examples. - id: scala content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified @@ -708,8 +649,6 @@ upper-right to set the language of the following examples. - id: go content: | - Delete Only One Document that Matches a Condition - ------------------------------------------------- To delete at most a single document that matches a specified filter (even though multiple documents may match the specified diff --git a/source/tutorial/update-documents.txt b/source/tutorial/update-documents.txt index a8b62eab4c3..0bcbe738d6c 100644 --- a/source/tutorial/update-documents.txt +++ b/source/tutorial/update-documents.txt @@ -13,6 +13,11 @@ 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 +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + ---------- .. |arrow| unicode:: U+27A4