Example:
User.aggregate({...}, function (errFinding, doc) {
doc.name = 'John';
doc.save({...});
});
--To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/01af7956-eebe-4236-84da-ee7aba7087b3%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/hL_d7G1OLMg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAOe6dJA4bSB8Jm1Qt%2B9kvg4wt6rdYZ62Y4M3VTHFB6Q3AsU1mQ%40mail.gmail.com.