连接数据库,需要动态去写入查找条件,结果却为空,是不能这样写吗?

发布于 6 年前作者 maowei9260 次浏览最后编辑 6 年前来自 ask

云函数连接数据库,event参数为动态条件,where中是否可以将event当作动态json条件?

打印res 为【】空数组

1 回复
jiangjun
jiangjun1 楼4 年前
where({
 type:event.type
})