Skip to content

Commit

Permalink
docs: correct link
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 authored Jul 27, 2020
1 parent 4ae4a9b commit 17fbcca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/migrating_to_5.pug
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ block content
Connection Logic and `useMongoClient`
</a></h3>

The [`useMongoClient` option](http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client) was
The [`useMongoClient` option](/docs/4.x/docs/connections.html#use-mongo-client) was
removed in Mongoose 5, it is now always `true`. As a consequence, Mongoose 5
no longer supports several function signatures for `mongoose.connect()` that
worked in Mongoose 4.x if the `useMongoClient` option was off. Below are some
Expand Down Expand Up @@ -489,7 +489,7 @@ block content
</a></h3>

Mongoose 5.x uses version 3.x of the [MongoDB Node.js driver](http://npmjs.com/package/mongodb). MongoDB driver 3.x changed the format of
the result of [`bulkWrite()` calls](http://mongoosejs.com//docs/api.html#model_Model.bulkWrite) so there is no longer a top-level `nInserted`, `nModified`, etc. property. The new result object structure is [described here](http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~BulkWriteOpResult).
the result of [`bulkWrite()` calls](/docs/api.html#model_Model.bulkWrite) so there is no longer a top-level `nInserted`, `nModified`, etc. property. The new result object structure is [described here](http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~BulkWriteOpResult).

```javascript
const Model = mongoose.model('Test', new Schema({ name: String }));
Expand Down Expand Up @@ -569,4 +569,4 @@ block content

```javascript
mongoose.connect(uri, { tlsInsecure: false }); // Opt out of additional SSL validation
```
```

0 comments on commit 17fbcca

Please sign in to comment.