Mongoose - Why we make "mongoose.Promise = global.Promise" when setting a mongoose module? : <p>I'm working with Mongoose. I have seen a lot of developers make the following command: </p>

<pre><code>mongoose.Promise = global.Promise;
</code></pre>

<p>Then I was curious to see what is the original value of <code>mongoose.Promise</code> . I have entered in my editor the following command: </p>

<pre><code>const mongoose = require("mongoose");

console.log("promise: ", mongoose.Promise);
</code></pre>

<p>My console returned me : </p>

<blockquote>
  <p>promise:  function Promise() { [native code] }</p>
</blockquote>

<p>Okay, so why make the command <code>mongoose.Promise = global.Promise</code> since the Mongoose's promise already returns a native code ? I don't understand the point, if someone can help us to understand, would be great,</p>

<p>Thanks</p>
