File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,12 @@ Upgrade Driver Versions
13
13
Overview
14
14
--------
15
15
16
- On this page, you can learn about any changes you might need to make to
17
- your application to upgrade your driver to a new version without loss of
18
- functionality.
16
+ On this page, you can learn how to upgrade your driver to a new version. This page also
17
+ includes the changes you must make to your application to upgrade your driver
18
+ without losing functionality, if applicable.
19
+
20
+ How to Upgrade
21
+ --------------
19
22
20
23
Before you upgrade, perform the following actions:
21
24
@@ -35,6 +38,18 @@ Before you upgrade, perform the following actions:
35
38
application when upgrading driver versions by using the
36
39
:ref:`{+stable-api+} <nodejs-stable-api>`.
37
40
41
+ To upgrade your driver version, run the following command in your application's
42
+ directory:
43
+
44
+ .. code-block:: bash
45
+
46
+ npm install mongodb@{+version+}
47
+
48
+ To upgrade to a different version of the driver, replace the information after the
49
+ ``@`` symbol with your preferred version number. For more information about the
50
+ ``npm install`` command, see the `npm-install <https://docs.npmjs.com/cli/v10/commands/npm-install?v=true>`__
51
+ npm documentation.
52
+
38
53
.. _node-breaking-changes:
39
54
40
55
Breaking Changes
You can’t perform that action at this time.
0 commit comments