title: Retrieving _id from mongoose create
body: <p>Been searching for an answer to, what I think, is a common question.</p>
  
  <p>I'm using Mongoose and Step.js (for code control).</p>
  
  <p>I'm iterating through a couple records, creating individual models and hoping to return the created IDs. This is for a RESTful service I'm implementing to bulk insert records. I didn't include all the parts that Step is doing.</p>
  
  <p>Code looks roughly like this:</p>
  
  <pre><code>var group = this.group();
  
  for (var i in records) {
      model.create(records[i], group());
  }
  </code></pre>
  
  <p>The group function is Step, waiting for all the records to save.</p>
  
  <p>The problem is once each record is saved, I'm hoping that Mongoose will return the _id associated with each create. It's only returning a result of the record itself without the proper _id value.</p>
  
  <p>I've attempted creating the ObjectId and saving the model, but that failed and isn't recommended by a lot of people in a number of forums.</p>
  
  <p>Thanks.</p>