title: Correct procedure for restarting local MongoDB when Mongoose schema is changed
body: <p>Hi all I'm new to learning how to develop with Node.js using Mongoose and Express. I have been having some issues with Mongodb not correctly reflecting my schema changes.</p>
  
  <p>For example, I have written a model that supposedly auto-increment <code>_id</code> by 1 starting from 0 when each new document is inserted. I'm testing a few ways to do this model and so I'm constantly inserting different data.</p>
  
  <p>I drop the collection each time to try to reinsert the data. However, <code>_id</code> instead of starting at 0, it starts at the previous largest <code>_id</code>. </p>
  
  <p>This is just one of the issues that I have encountered. Some other similar Schema changes that I did on the fly also were not reflected.</p>
  
  <p>I tried the following:</p>
  
  <ul>
  <li>Ending npm/nodemon</li>
  <li>Ctrl+C from <code>mongo</code></li>
  <li>shutdownServer from <code>mongo</code></li>
  </ul>
  
  <p>Is there something else that I need to shut down completely then restart before mongoose reflects the newest form of the schema? Thanks!</p>