db.collection("dbname")
.where(
{
status: _.gte(2),
id: "sadf" }
)
.get()
上面的语句在 云函数当中执行报错, 提示 " ReferenceError: _ is not define"
把条件 status: _.gte(2), 去掉的时候可以正常执行,麻烦大家看下是什么错误
网友回复
Stephen:
const _ = db.command
db.collection("dbname")
.where(
{
status: _.gte(2),
id: "sadf" }
)
.get()
上面的语句在 云函数当中执行报错, 提示 " ReferenceError: _ is not define"
把条件 status: _.gte(2), 去掉的时候可以正常执行,麻烦大家看下是什么错误
const _ = db.command