Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 2 additions & 2 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 Down
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 @@ What's New

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 @@ Learn what's new in:
* :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:

- You can use the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method
to perform many insert, update and delete operations on multiple databases and
collections in one request.

- The new `bson.Vector <{+api+}/bson#Vector>`__ type makes inserting and querying
vector data using :atlas:`Atlas Vector Search </atlas-vector-search/vector-search-overview/>`
easier and 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 ths ``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