I would like to use findAndModify to atomically increment a field, using Mongoose.
However, the code below throws the error \"TypeError: Object # has no method \'fin
a lot of answers but I find this simple solution.
Counter.findByIdAndUpdate(ID, {$inc: {next:1}}, function (err, data) { });