diff --git a/config/redirects b/config/redirects index 24bd1f00..22d112aa 100644 --- a/config/redirects +++ b/config/redirects @@ -1,4 +1,7 @@ define: prefix docs/drivers/kotlin/coroutine define: base https://www.mongodb.com/${prefix} +define: versions v4.10 master raw: ${prefix}/ -> ${base}/current/ + +[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/change-a-document/ -> ${base}/${version}/fundamentals/crud/write-operations/modify/ \ No newline at end of file diff --git a/source/fundamentals/crud/write-operations.txt b/source/fundamentals/crud/write-operations.txt index a46b7c5e..98581e1b 100644 --- a/source/fundamentals/crud/write-operations.txt +++ b/source/fundamentals/crud/write-operations.txt @@ -4,7 +4,7 @@ Write Operations - :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` @@ -14,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 3a47c5bf..1d605236 100644 --- a/source/fundamentals/crud/write-operations/delete.txt +++ b/source/fundamentals/crud/write-operations/delete.txt @@ -1,8 +1,8 @@ .. _kotlin-fundamentals-delete: -================= -Delete a Document -================= +================ +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 cbb76b07..caabd57f 100644 --- a/source/fundamentals/crud/write-operations/change-a-document.txt +++ b/source/fundamentals/crud/write-operations/modify.txt @@ -1,8 +1,8 @@ .. _kotlin-fundamentals-change-document: -================= -Change a Document -================= +================ +Modify Documents +================ .. contents:: On this page :local: @@ -13,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 ` @@ -47,7 +47,7 @@ This data is modeled with the following Kotlin data class: 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. @@ -72,7 +72,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: