Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define: prefix docs/drivers/go
define: base https://www.mongodb.com/${prefix}
define: versions v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 v1.14 v1.15 v1.16 v1.17 v2.0 master
define: versions v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 v1.14 v1.15 v1.16 v1.17 v2.0 v2.1 master

symlink: current -> master

Expand Down
6 changes: 3 additions & 3 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ api-version = "v2"
driver-long = "MongoDB Go Driver"
driver-short = "Go driver"
docs-branch = "master"
version = "v2.0"
full-version = "{+version+}.1"
version = "v2.1"
full-version = "{+version+}.0"
example = "https://raw.githubusercontent.com/mongodb/docs-golang/{+docs-branch+}/source/includes/usage-examples/code-snippets"
api = "https://pkg.go.dev/go.mongodb.org/mongo-driver/{+api-version+}"
stable-api = "Stable API"
Expand All @@ -29,5 +29,5 @@ kms-long = "Key Management System"
cmk-long = "Customer Master Key"
dek-long = "Data Encryption Key"
csfle-short = "CSFLE"
csfle-long = "Client-side Field Level Encryption"
csfle-long = "Client-Side Field Level Encryption"
mdb-server = "MongoDB Server"
13 changes: 12 additions & 1 deletion source/includes/mongodb-compatibility-table-go.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
- MongoDB 4.0
- MongoDB 3.6

* - 2.1
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

* - 1.12 to 2.0
- ⊛ [#8.0-support]_
- ✓
Expand All @@ -36,4 +47,4 @@
- ✓
- ✓

.. [#8.0-support] {+driver-short+} v1.17 is partially compatible with {+mdb-server+} 8.0 but does not support client bulk write.
.. [#8.0-support] {+driver-short+} v1.17 and v2.0 are partially compatible with {+mdb-server+} 8.0 but do not support client bulk write.
29 changes: 29 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

Learn what's new in:

* :ref:`Version 2.1 <golang-version-2.1>`
* :ref:`Version 2.0 <golang-version-2.0>`
* :ref:`Version 1.17 <golang-version-1.17>`
* :ref:`Version 1.16 <version-1.16>`
Expand All @@ -36,6 +37,34 @@
* :ref:`Version 1.12.1 <version-1.12.1>`
* :ref:`Version 1.12 <version-1.12>`

.. _golang-version-2.1:

What's New in 2.1
-----------------

The 2.1 {+driver-short+} release includes the following improvements
and fixes:

- Adds the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method
to make performing many insert, update, and delete operations on multiple databases and

Check failure on line 49 in source/whats-new.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.CommaOxford] Use the Oxford comma in ' to make performing many insert, update, and delete operations on multiple databases and '. Raw Output: {"message": "[MongoDB.CommaOxford] Use the Oxford comma in ' to make performing many insert, update, and delete operations on multiple databases and '.", "location": {"path": "source/whats-new.txt", "range": {"start": {"line": 49, "column": 1}}}, "severity": "ERROR"}
collections in one request more efficient.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on how you interpret the "more efficient" part it could be slightly inaccurate. How about one of these variants?

Adds the new Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>__ method to provide clients the ability to perform many insert, update, and delete operations on multiple databases and collections in one request.

or

Introduces the new Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>__, enabling clients to perform multiple insert, update, and delete operations across databases and collections in a single request.

Copy link
Collaborator Author

@lindseymoore lindseymoore Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the second one, thanks! Also added 'Introduces' to second bullet


- Adds the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying
vector data by using :atlas:`Atlas Vector Search </atlas-vector-search/vector-search-overview/>`
more efficient.

- Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include
``ErrorCodes``, which returns a list of deduplicated error codes returned by
the server during the lifetime of operation execution.

- Adds the ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__
and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne``
and ``replaceOne`` operations.

For more information about the changes in this version, see the
:github:`v2.1 release notes </mongodb/mongo-go-driver/releases/tag/v2.1.0>`
on GitHub.

.. _golang-version-2.0:

What's New in 2.0
Expand Down
Loading