更新时间:2023-11-30 15:30:34
为此我们可以使用Waterline的where api,下面是一个例子
For doing so we can use the where api of Waterline, following is an example
Book.find().where( { or : [ { free : true }, { public: true } ] })
.where( { author : "Author-1" } )
.exec( function (err, books) {
//Books will be an array containing all the books that matches this criteria
//Some code here
}