Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

About the mongoid #58

Open
gclinux opened this issue Apr 18, 2017 · 0 comments
Open

About the mongoid #58

gclinux opened this issue Apr 18, 2017 · 0 comments

Comments

@gclinux
Copy link

gclinux commented Apr 18, 2017

here is the code

let list = await db.test.find({});
let a = [];
for(i in list){
  a.push(list._id)
}
db.ams_click_job.update({'_id':{'$in':a}},{'$inc':{'num':1}},{'multiple':true});

the num not inc .

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

No branches or pull requests

1 participant