node.js - Identity Map with Mongoose -


is there native way mongoose 4.x maintain identity map , avoid returning different object instances same entity in db?

users.findone({_id: objectid("xxx")}, function(err, user1) {   if (err) throw err;   users.findone({_id: objectid("xxx")}, function(err, user2) {      if (err) throw err;      console.log(user1 === user2); // return false   }); }); 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -