diff --git a/config/redirects b/config/redirects index cee8a4e0d..18ccb714a 100644 --- a/config/redirects +++ b/config/redirects @@ -8,3 +8,4 @@ raw: ${prefix}/master -> ${base}/upcoming/ [*-master]: ${prefix}/${version}/fundamentals/versioned-api/ -> ${base}/${version}/fundamentals/stable-api/ [*-v4.6]: ${prefix}/${version}/fundamentals/crud/read-operations/change-streams/ -> ${base}/${version}/fundamentals/crud/read-operations/retrieve/ [*-master]: ${prefix}/${version}/fundamentals/csfle/ -> ${base}/${version}/fundamentals/encrypt-fields/ +[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/change-a-document/ -> ${base}/${version}/fundamentals/crud/write-operations/modify/ diff --git a/source/fundamentals/crud/write-operations.txt b/source/fundamentals/crud/write-operations.txt index 6c4d446b3..98581e1b4 100644 --- a/source/fundamentals/crud/write-operations.txt +++ b/source/fundamentals/crud/write-operations.txt @@ -2,11 +2,9 @@ Write Operations ================ -.. default-domain:: mongodb - - :doc:`/fundamentals/crud/write-operations/insert` - :doc:`/fundamentals/crud/write-operations/delete` -- :doc:`/fundamentals/crud/write-operations/change-a-document` +- :doc:`/fundamentals/crud/write-operations/modify` - :doc:`/fundamentals/crud/write-operations/embedded-arrays` - :doc:`/fundamentals/crud/write-operations/upsert` - :doc:`/fundamentals/crud/write-operations/bulk` @@ -16,7 +14,7 @@ Write Operations /fundamentals/crud/write-operations/insert /fundamentals/crud/write-operations/delete - /fundamentals/crud/write-operations/change-a-document + /fundamentals/crud/write-operations/modify /fundamentals/crud/write-operations/embedded-arrays /fundamentals/crud/write-operations/upsert /fundamentals/crud/write-operations/bulk diff --git a/source/fundamentals/crud/write-operations/delete.txt b/source/fundamentals/crud/write-operations/delete.txt index 68b90b7eb..d4d70e883 100644 --- a/source/fundamentals/crud/write-operations/delete.txt +++ b/source/fundamentals/crud/write-operations/delete.txt @@ -1,10 +1,8 @@ .. _java-fundamentals-delete: -================= -Delete a Document -================= - -.. default-domain:: mongodb +================ +Delete Documents +================ .. contents:: On this page :local: diff --git a/source/fundamentals/crud/write-operations/change-a-document.txt b/source/fundamentals/crud/write-operations/modify.txt similarity index 96% rename from source/fundamentals/crud/write-operations/change-a-document.txt rename to source/fundamentals/crud/write-operations/modify.txt index d9e5de51e..913b9e8b7 100644 --- a/source/fundamentals/crud/write-operations/change-a-document.txt +++ b/source/fundamentals/crud/write-operations/modify.txt @@ -1,10 +1,8 @@ .. _java-fundamentals-change-document: -================= -Change a Document -================= - -.. default-domain:: mongodb +================ +Modify Documents +================ .. contents:: On this page :local: @@ -15,7 +13,7 @@ Change a Document Overview -------- -In this guide, you can learn how to change documents in a MongoDB +In this guide, you can learn how to modify documents in a MongoDB collection using two distinct operation types: - :ref:`Update ` @@ -44,7 +42,7 @@ current inventory: Update ------ -Update operations can change fields and values. They apply changes +Update operations can modify fields and values. They apply changes specified in an update document to one or more documents that match your query filter. @@ -69,7 +67,7 @@ The ``updateOne()`` and ``updateMany()`` methods both have the following parameters: - ``query`` specifies a query filter with the criteria to match documents to update in your collection -- ``updateDocument`` specifies the fields and values to change in the matching document or documents. For this example, we use the :doc:`Updates builder ` to create the update document. +- ``updateDocument`` specifies the fields and values to modify in the matching document or documents. For this example, we use the :doc:`Updates builder ` to create the update document. You can create the ``updateDocument`` using an ``Updates`` builder as follows: