inc

  • MongoDB

Increment($inc) operator: MongoDB

Lets learn how to use $inc operator with update() method in MongoDB. test database, names collection > db.names.find().pretty() { "_id"…

10 years ago