title: MongoDb - To create a new ObjectId please try `Mongoose.Types.ObjectId` instead of using `Mongoose.Schema.ObjectId`
body: <p>I am new to Node.js and mongodb. </p>
  
  <p>In my Node.js application, I am using mongodb and for mongodb operations I am using mongoose.</p>
  
  <p>In the <code>package.json</code> file, I have the following dependency:</p>
  
  <pre><code>"mongoose": "4.11.9"
  </code></pre>
  
  <p>Although my application works (I can do everything that I want), In the server log I always see the following error message:</p>
  
  <blockquote>
    <p>To create a new ObjectId please try <code>Mongoose.Types.ObjectId</code> instead
    of using <code>Mongoose.Schema.ObjectId</code>.</p>
  </blockquote>
  
  <p>How can I solve this problem ?</p>