Browse Source

avoiding another scrollbar in docs

saintedlama/travis-non-legacy
Mathias Buus 11 years ago
parent
commit
f65a1e8a5d
  1. 3
      README.md

3
README.md

@ -55,12 +55,11 @@ db.mycollection.find({level:{$gt:90}}).forEach(function(err, doc) {
});
// find all named 'mathias' and increment their level
db.mycollection.update({name:'mathias'}, {$inc:{level:1}}, {multi:true}, function(err) {
db.mycollection.update({name:'mathias'}, {$inc:{level:1}}, {multi:true}, function() {
// the update is complete
});
// find one named 'mathias', tag him as a contributor and return the modified doc
db.mycollection.findAndModify({
query: { name: 'mathias' },
update: { $set: { tag:'maintainer' } },

Loading…
Cancel
Save