Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update method run fail , mongoc-1.20 ,mongdb 5.0.4 #43

Open
3244194454 opened this issue Dec 8, 2021 · 0 comments
Open

update method run fail , mongoc-1.20 ,mongdb 5.0.4 #43

3244194454 opened this issue Dec 8, 2021 · 0 comments

Comments

@3244194454
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant