title: Any way to get the modified IDS from mongodb's bulk operations using mongoose?
body: <pre class="lang-js prettyprint-override"><code>let dbOperations = Edge.collection.initializeOrderedBulkOp()
  edges.forEach(edge =&gt; {
      dbOperations.find({_id: edge.id}).upsert().updateOne({
          $set: {
              value: edge.value
          },
          $setOnInsert: {
              _id: edge.id
          }
      })
  })
  dbOperations.execute()
      .then(result =&gt; {
          console.log(result.nModified) // This shows the number of edges that is actually modified
          console.log(result.getModifiedIds()) // This is what I want to achieve
      })
  </code></pre>
  
  <p>Any way to achieve this?</p>