Skip to content

Commit

Permalink
DOCSP-34356 Staging Bulk Operations Content (#577)
Browse files Browse the repository at this point in the history
* DOCSP-34356 Staging Bulk Operations Content
  • Loading branch information
ianf-mongodb authored Nov 20, 2023
1 parent c3e7a39 commit 39d1e19
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 12 deletions.
2 changes: 2 additions & 0 deletions source/documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ specify query options.
/documents/view
/documents/insert
/documents/modify
/documents/modify-multiple
/documents/clone
/documents/delete
/documents/delete-multiple
6 changes: 6 additions & 0 deletions source/documents/clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions source/documents/delete-multiple.txt
Original file line number Diff line number Diff line change
@@ -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.
27 changes: 18 additions & 9 deletions source/documents/delete.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
</reference/method/db.collection.deleteMany/>` method in the
:ref:`embedded MongoDB Shell <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()
</reference/method/db.collection.deleteMany/>` method in the
:ref:`embedded MongoDB Shell <embedded-mongodb-shell>` to delete
multiple documents in a single operation.
17 changes: 17 additions & 0 deletions source/documents/modify-multiple.txt
Original file line number Diff line number Diff line change
@@ -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.
25 changes: 22 additions & 3 deletions source/documents/modify.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
</reference/method/db.collection.updateMany/>` method in the
:ref:`embedded MongoDB Shell <embedded-mongodb-shell>` to update
multiple documents in a single operation.

0 comments on commit 39d1e19

Please sign in to comment.