@@ -26,6 +26,7 @@ What's New
26
26
27
27
Learn what's new in:
28
28
29
+ * :ref:`Version 2.1 <golang-version-2.1>`
29
30
* :ref:`Version 2.0 <golang-version-2.0>`
30
31
* :ref:`Version 1.17 <golang-version-1.17>`
31
32
* :ref:`Version 1.16 <version-1.16>`
@@ -36,6 +37,34 @@ Learn what's new in:
36
37
* :ref:`Version 1.12.1 <version-1.12.1>`
37
38
* :ref:`Version 1.12 <version-1.12>`
38
39
40
+ .. _golang-version-2.1:
41
+
42
+ What's New in 2.1
43
+ -----------------
44
+
45
+ The 2.1 {+driver-short+} release includes the following improvements
46
+ and fixes:
47
+
48
+ - Introduces the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method,
49
+ enabling clients to perform multiple insert, update, and delete operations across
50
+ multiple databases and collections in a single request.
51
+
52
+ - Introduces the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying
53
+ vector data by using :atlas:`Atlas Vector Search </atlas-vector-search/vector-search-overview/>`
54
+ easier and more efficient.
55
+
56
+ - Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include
57
+ ``ErrorCodes``, which returns a list of deduplicated error codes returned by
58
+ the server during the lifetime of operation execution.
59
+
60
+ - Adds the ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__
61
+ and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne``
62
+ and ``replaceOne`` operations.
63
+
64
+ For more information about the changes in this version, see the
65
+ :github:`v2.1 release notes </mongodb/mongo-go-driver/releases/tag/v2.1.0>`
66
+ on GitHub.
67
+
39
68
.. _golang-version-2.0:
40
69
41
70
What's New in 2.0
0 commit comments