node.js - mongoose怎么传递一段代码段到mongoodb?
伊谢尔伦
伊谢尔伦 2017-04-17 15:24:22
0
1
431

比如

var a = db.collection.find();
var b = [];
a.forEach(item=> {
    if (item.name == 1)
        b.push(item)
});
b;

有一个处理比较复杂的语句代码段,mongoose怎么传递这段代码段到mongoodb?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
阿神

What is your intention? Looking at your code, you only need to process it in the callback after querying the value

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template