What is the behavior when Mongo reaches its maximum value for findAndModify with parameters below, how can I reset to 0 when this happens?
db.collection('count').findAndModify(
{ "_id": "xy" },
[["_id", 1]],
{ $inc: { seq: 1 } },
{new: true, 'upsert': true},
function(err,doc) {
if (err) throw err;
console.log(doc.value.seq);
}