manuelbieh

Untitled

Nov 27th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // works
  2. db.users.find({name: 'Manuel'}, function(err, docs) {
  3.     docs[0].channels.forEach(function(channelData) {
  4.         if(channelData.time == 1353933195049) {
  5.             db.users.update({name: 'Manuel'}, {$pull: {channels: channelData}});
  6.         }
  7.     });
  8. });
Advertisement
Add Comment
Please, Sign In to add comment