Skip to content
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

DOCSP-34356 Staging Bulk Operations Content #577

Merged
merged 11 commits into from
Nov 20, 2023
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
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.