uni-app官方文档这个地方是不是错的?我不会,请指点一下

uni-app官方文档这个地方是不是错的?我不会,请指点一下

https://uniapp.dcloud.io/uniCloud/cf-database-aggregate-operator.html#示例代码-33

求 min 小于 40 且 max 大于 60 的记录。

const $ = db.command.aggregate
let res = await db.collection('price').aggregate()
.project({
fullfilled: $.or([$.lt(['$min', 40]), $.gt(['$max', 60])])
})
.end()  

$.lt([’$min’, 40])这个应该是40还是30啊


更多关于uni-app官方文档这个地方是不是错的?我不会,请指点一下的实战教程也可以访问 https://www.itying.com/category-93-b0.html

回到顶部