Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // works
- db.users.find({name: 'Manuel'}, function(err, docs) {
- docs[0].channels.forEach(function(channelData) {
- if(channelData.time == 1353933195049) {
- db.users.update({name: 'Manuel'}, {$pull: {channels: channelData}});
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment