mark下
自增id并获取
# ids: {"type":"wei_id", "id":0} db.ids.findAndModify({"update":{"$inc":{"id":1}}, "query":{"type":"wei_id"}, "new":"true"})
2022-08-31 10:56:16
mark下
自增id并获取
# ids: {"type":"wei_id", "id":0} db.ids.findAndModify({"update":{"$inc":{"id":1}}, "query":{"type":"wei_id"}, "new":"true"})