title: Get inserted Ids for Bulk.Insert() -Mongoskin
body: <p>I am using a mongoskin in my nodeJs applicatipon to insert data in mongo db. I have a requirement to insert array of documents in database and send back the Ids of inserted records to the client. I am able to insert data however unable to locate the Ids of inserted records in the result Object. Need help to locate the insertedIds in the result. Im using the below code to bulk insert.</p>
  
  <pre><code>db.collection('myCollection', function (err, collection) {
      var bulk = collection.initializeUnorderedBulkOp();
      for (var i = 0; i &lt; dataArray.length; i++) {
          bulk.insert(dataArray[i]);
      }
  
      bulk.execute(function (err, result) {
        //TODO: return the Ids of inserted records to the client
        //Client will use these Ids to perform subsequent calls to the nodejs service
      });
  });
  </code></pre>
  
  <p>My result is a <code>BatchWriteResult</code> Object type.</p>