From 17fbcca7a00f651c4e6e12c6780f8c97169ed005 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 27 Jul 2020 17:09:26 -0400 Subject: [PATCH] docs: correct link --- docs/migrating_to_5.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/migrating_to_5.pug b/docs/migrating_to_5.pug index 04729953669..9d675af697c 100644 --- a/docs/migrating_to_5.pug +++ b/docs/migrating_to_5.pug @@ -105,7 +105,7 @@ block content Connection Logic and `useMongoClient` - 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 @@ -489,7 +489,7 @@ block content 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 })); @@ -569,4 +569,4 @@ block content ```javascript mongoose.connect(uri, { tlsInsecure: false }); // Opt out of additional SSL validation - ``` \ No newline at end of file + ```