Open 3244194454 opened 2 years ago
When you execute this code, a new record will be inserted.
local mg, err = moongoo.new("mongodb://xxx") local col = mg:db("testdb"):collection("mytest2") -- 选择db和表 col:update({ name = "Bobby" }, { age = 20 } ,{upset = true} )
mongoc: 1.20 mongdb 5.0.4
When you execute this code, a new record will be inserted.
mongoc: 1.20 mongdb 5.0.4