Skip to content

Commit c00f683

Browse files
committed
DOCSP-46446: v5.3 release
1 parent dbab999 commit c00f683

File tree

7 files changed

+65
-6
lines changed

7 files changed

+65
-6
lines changed

config/redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/languages/kotlin/kotlin-sync-driver
22
define: base https://www.mongodb.com/docs/
3-
define: versions v5.1 v5.2 master
3+
define: versions v5.1 v5.2 v5.3 master
44

55
symlink: current -> master
66

snooty.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
2424
driver-long = "MongoDB Kotlin Sync Driver"
2525
driver-short = "Kotlin Sync driver"
2626
language = "Kotlin"
27-
version-number = "5.2"
27+
version-number = "5.3"
2828
full-version = "{+version-number+}.0"
2929
version = "v{+version-number+}"
3030
mdb-server = "MongoDB Server"
@@ -33,6 +33,6 @@ api = "https://mongodb.github.io/mongo-java-driver/{+version-number+}/apidocs/mo
3333
java-api = "https://mongodb.github.io/mongo-java-driver/{+version-number+}"
3434
core-api = "{+java-api+}/apidocs/mongodb-driver-core"
3535
kotlin-docs = "https://kotlinlang.org"
36-
serialization-version = "1.5.1"
36+
serialization-version = "1.6.0"
3737
kotlinx-dt-version = "0.6.1"
3838
mongocrypt-version = "{+full-version+}"

source/whats-new.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,36 @@ What's New
1212

1313
Learn what's new in:
1414

15+
* :ref:`Version 5.3 <kotlin-sync-version-5.3>`
1516
* :ref:`Version 5.2 <kotlin-sync-version-5.2>`
1617
* :ref:`Version 5.1.3 <kotlin-sync-version-5.1.3>`
1718
* :ref:`Version 5.1.2 <kotlin-sync-version-5.1.2>`
1819
* :ref:`Version 5.1.1 <kotlin-sync-version-5.1.1>`
1920
* :ref:`Version 5.1 <kotlin-sync-version-5.1>`
2021
* :ref:`Version 5.0 <kotlin-sync-version-5.0>`
2122

23+
.. _kotlin-sync-version-5.3:
24+
25+
What's New in 5.3
26+
-----------------
27+
28+
The 5.3 driver release includes the following new features,
29+
improvements, and fixes:
30+
31+
.. sharedinclude:: dbx/jvm/v5.3-wn-items.rst
32+
33+
.. replacement:: vector-type-example-link
34+
35+
To learn about this type, see the
36+
`BinaryVector <{+java-api+}/apidocs/bson/org/bson/BinaryVector.html>`__
37+
API documentation.
38+
39+
.. replacement:: update-replace-example-link
40+
41+
the :ref:`kotlin-sync-write-update`,
42+
:ref:`kotlin-sync-write-replace`, and
43+
:ref:`kotlin-sync-bulk-write` guides
44+
2245
.. _kotlin-sync-version-5.2:
2346

2447
What's New in 5.2

source/work-with-indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Work with Indexes
2121

2222
Single Field </indexes/single-field-index>
2323
Compound </indexes/compound-index>
24-
Atlas & Vector Search </indexes/atlas-search-index>
24+
Atlas Search & Vector Search </indexes/atlas-search-index>
2525

2626
Overview
2727
--------

source/write/bulk-write.txt

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ The following example creates an instance of ``UpdateOneModel``:
116116
:copyable:
117117
:dedent:
118118

119+
If multiple documents match the query filter specified in
120+
the ``UpdateOneModel`` instance, the operation updates the first
121+
result. You can specify a sort in an ``UpdateOptions`` instance to apply
122+
an order to matched documents before the driver performs the update
123+
operation, as shown in the following code:
124+
125+
.. code-block:: java
126+
127+
val opts = UpdateOptions().sort(Sorts.ascending(Restaurant::name.name))
128+
119129
To update multiple documents, create an instance of ``UpdateManyModel`` and pass
120130
the same arguments as for ``UpdateOneModel``. The ``UpdateManyModel``
121131
class specifies updates for *all* documents that match your query
@@ -148,8 +158,20 @@ The following example creates an instance of ``ReplaceOneModel``:
148158
:copyable:
149159
:dedent:
150160

151-
To replace multiple documents, you must create an instance of
152-
``ReplaceOneModel`` for each document.
161+
If multiple documents match the query filter specified in
162+
the ``ReplaceOneModel`` instance, the operation replaces the first
163+
result. You can specify a sort in a ``ReplaceOptions`` instance to apply
164+
an order to matched documents before the driver performs the replace
165+
operation, as shown in the following code:
166+
167+
.. code-block:: java
168+
169+
val opts = ReplaceOptions().sort(Sorts.ascending(Restaurant::name.name))
170+
171+
.. tip:: Replace Multiple Documents
172+
173+
To replace multiple documents, create an instance of
174+
``ReplaceOneModel`` for each document.
153175

154176
Delete Operations
155177
~~~~~~~~~~~~~~~~~

source/write/replace.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ configure an ``ReplaceOptions`` instance:
113113
in the {+mdb-server+} manual.
114114
| Defaults to ``false``
115115

116+
* - ``sort(Bson sort)``
117+
- | Sets the sort criteria to apply to the operation. If multiple
118+
documents match the query filter that you pass to the
119+
``replaceOne()`` method, the operation replaces the first
120+
result. You can set this option to apply an order to matched
121+
documents to have more control over which document is replaced.
122+
116123
* - ``bypassDocumentValidation()``
117124
- | Specifies whether the update operation bypasses document validation. This lets you
118125
update documents that don't meet the schema validation requirements, if any

source/write/update.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ configure an ``UpdateOptions`` instance:
113113
in the {+mdb-server+} manual.
114114
| Defaults to ``false``
115115

116+
* - ``sort(Bson sort)``
117+
- | Sets the sort criteria to apply to the operation. If multiple
118+
documents match the query filter that you pass to the
119+
``updateOne()`` method, the operation updates the first
120+
result. You can set this option to apply an order to matched
121+
documents to have more control over which document is updated.
122+
116123
* - ``bypassDocumentValidation()``
117124
- | Specifies whether the update operation bypasses document validation. This lets you
118125
update documents that don't meet the schema validation requirements, if any

0 commit comments

Comments
 (0)