-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
How I can do make update on data without chaining the command to find();
_mongo.connect.then(function() {
_mongo.collection('friends').findOne({
user: {
id: userId
}
}).then(function(user) {
var result = importContacts(user,maxResults);
// I want to save the contacts of the user at this point
});
how I can do that (updating the user object without calling collection("friends").find(user) again
Metadata
Metadata
Assignees
Labels
No labels