You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -64,8 +64,8 @@ The following table describes add-on component version compatibility for the Nod
64
64
65
65
We recommend using the latest version of typescript, however we currently ensure the driver's public types compile against `[email protected]`.
66
66
This is the lowest typescript version guaranteed to work with our driver: older versions may or may not work - use at your own risk.
67
-
Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes) we consider this support best effort.
68
-
If you run into any unexpected compiler failures against our supported TypeScript versions please let us know by filing an issue on our [JIRA](https://jira.mongodb.org/browse/NODE).
67
+
Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes), we consider this support best effort.
68
+
If you run into any unexpected compiler failures against our supported TypeScript versions, please let us know by filing an issue on our [JIRA](https://jira.mongodb.org/browse/NODE).
69
69
70
70
## Installation
71
71
@@ -153,13 +153,13 @@ Add code to connect to the server and the database **myProject**:
153
153
154
154
> **NOTE:** Resolving DNS Connection issues
155
155
>
156
-
> Node.js 18 changed the default DNS resolution ordering from always prioritizing ipv4 to the ordering
156
+
> Node.js 18 changed the default DNS resolution ordering from always prioritizing IPv4 to the ordering
157
157
> returned by the DNS provider. In some environments, this can result in `localhost` resolving to
158
-
> an ipv6 address instead of ipv4 and a consequent failure to connect to the server.
158
+
> an IPv6 address instead of IPv4 and a consequent failure to connect to the server.
159
159
>
160
160
> This can be resolved by:
161
161
>
162
-
> - specifying the ip address family using the MongoClient `family` option (`MongoClient(<uri>, { family: 4 } )`)
162
+
> - specifying the IP address family using the MongoClient `family` option (`MongoClient(<uri>, { family: 4 } )`)
163
163
> - launching mongod or mongos with the ipv6 flag enabled ([--ipv6 mongod option documentation](https://www.mongodb.com/docs/manual/reference/program/mongod/#std-option-mongod.--ipv6))
164
164
> - using a host of `127.0.0.1` in place of localhost
165
165
> - specifying the DNS resolution ordering with the `--dns-resolution-order` Node.js command line argument (e.g. `node --dns-resolution-order=ipv4first`)
This query returns all the documents in the **documents** collection.
227
-
If you add this below the insertMany example you'll see the document's you've inserted.
227
+
If you add this below the insertMany example, you'll see the documents you've inserted.
228
228
229
229
### Find Documents with a Query Filter
230
230
@@ -272,7 +272,7 @@ For more detailed information, see the [indexing strategies page](https://www.mo
272
272
273
273
## Error Handling
274
274
275
-
If you need to filter certain errors from our driver we have a helpful tree of errors described in [etc/notes/errors.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/errors.md).
275
+
If you need to filter certain errors from our driver, we have a helpful tree of errors described in [etc/notes/errors.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/errors.md).
276
276
277
277
It is our recommendation to use `instanceof` checks on errors and to avoid relying on parsing `error.message` and `error.name` strings in your code.
278
278
We guarantee `instanceof` checks will pass according to semver guidelines, but errors may be sub-classed or their messages may change at any time, even patch releases, as we see fit to increase the helpfulness of the errors.
@@ -298,14 +298,14 @@ try {
298
298
299
299
## Nightly releases
300
300
301
-
If you need to test with a change from the latest `main` branch our `mongodb` npm package has nightly versions released under the `nightly` tag.
301
+
If you need to test with a change from the latest `main` branch, our `mongodb` npm package has nightly versions released under the `nightly` tag.
302
302
303
303
```sh
304
304
npm install mongodb@nightly
305
305
```
306
306
307
307
Nightly versions are published regardless of testing outcome.
308
-
This means there could be sematic breakages or partially implemented features.
308
+
This means there could be semantic breakages or partially implemented features.
309
309
The nightly build is not suitable for production use.
0 commit comments