diff --git a/source/documents.txt b/source/documents.txt index 32cba6cb9..a3fe3f4e0 100644 --- a/source/documents.txt +++ b/source/documents.txt @@ -40,5 +40,7 @@ specify query options. /documents/view /documents/insert /documents/modify + /documents/modify-multiple /documents/clone /documents/delete + /documents/delete-multiple diff --git a/source/documents/clone.txt b/source/documents/clone.txt index 6442f5f4c..c01324496 100644 --- a/source/documents/clone.txt +++ b/source/documents/clone.txt @@ -6,6 +6,12 @@ Clone Documents .. default-domain:: mongodb +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + :class: singlecol + .. important:: Cloning documents is not permitted in diff --git a/source/documents/delete-multiple.txt b/source/documents/delete-multiple.txt new file mode 100644 index 000000000..0eea1c2bc --- /dev/null +++ b/source/documents/delete-multiple.txt @@ -0,0 +1,17 @@ +.. _compass-bulk-delete: + +========================= +Delete Multiple Documents +========================= + +.. facet:: + :name: genre + :values: tutorial + +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + :class: singlecol + +You can perform bulk delete operation on multiple documents in Compass. \ No newline at end of file diff --git a/source/documents/delete.txt b/source/documents/delete.txt index b437e6433..0e02a9390 100644 --- a/source/documents/delete.txt +++ b/source/documents/delete.txt @@ -1,11 +1,17 @@ .. _compass-delete-documents: -================ -Delete Documents -================ +====================== +Delete Single Document +====================== .. default-domain:: mongodb +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + :class: singlecol + .. important:: Deleting documents is not permitted in @@ -76,9 +82,12 @@ Once you confirm, Compass deletes the document from the collection. Delete Multiple Documents ------------------------- -You cannot delete multiple documents at once from the |compass-short| -:abbr:`UI (User Interface)`. As an alternative, you can use the -:manual:`db.collection.deleteMany() -` method in the -:ref:`embedded MongoDB Shell ` to delete -multiple documents in a single operation. +You can use the bulk delete operations workflow to delete multiple +documents in Compass. For details, see :ref:`compass-bulk-delete`. + +.. note:: + + You can also use the :manual:`db.collection.deleteMany() + ` method in the + :ref:`embedded MongoDB Shell ` to delete + multiple documents in a single operation. diff --git a/source/documents/modify-multiple.txt b/source/documents/modify-multiple.txt new file mode 100644 index 000000000..98864df2c --- /dev/null +++ b/source/documents/modify-multiple.txt @@ -0,0 +1,17 @@ +.. _compass-bulk-update: + +========================= +Modify Multiple Documents +========================= + +.. facet:: + :name: genre + :values: tutorial + +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + :class: singlecol + +You can perform bulk update operations on multiple documents in Compass. \ No newline at end of file diff --git a/source/documents/modify.txt b/source/documents/modify.txt index db377e549..beac56068 100644 --- a/source/documents/modify.txt +++ b/source/documents/modify.txt @@ -1,11 +1,17 @@ .. _compass-modify-documents: -================ -Modify Documents -================ +====================== +Modify Single Document +====================== .. default-domain:: mongodb +.. contents:: On this page + :local: + :backlinks: none + :depth: 1 + :class: singlecol + You can edit existing documents in your collection. .. include:: /includes/fact-modify-findOneAndUpdate.rst @@ -207,3 +213,16 @@ Cancel Changes To exit the edit mode and cancel all pending changes to the document, click the :guilabel:`Cancel` button. + +Modify Multiple Documents +------------------------- + +You can use the bulk update operations workflow to update multiple +documents in Compass. For details, see :ref:`compass-bulk-update`. + +.. note:: + + You can also use the :manual:`db.collection.updateMany() + ` method in the + :ref:`embedded MongoDB Shell ` to update + multiple documents in a single operation.