title: How to achieve rollback in transactions in mongo?
body: <p>I am using mongoose over mongodb.</p>
  
  <p>In a request and response from nodejs express server, generally requires a no of queries to mongodb through mongoose.</p>
  
  <p>In many cases it may happen, if first a few queries executes successfully and rest all failed under a transaction.</p>
  
  <p>Now i need to rollback my db state to the very initial state of db.</p>
  
  <p>So how can i rollback efficiently in mongodb?
  Please provide some suitable references.</p>