HTTP API中无法使用addToSet、pull和pullAll吗?
发布于 7 年前 作者 itang 2016 次浏览 来自 官方Issues

HTTP API中无法使用addToSet、pull和pullAll吗?

RuntimeError: cannot get property ‘addToSet’ (at line 1, col 72) hint: [tCBWla08512162]

RuntimeError: cannot get property ‘pull’ (at line 1, col 72) hint: [tCBWla08512162]

RuntimeError: cannot get property ‘pullAll’ (at line 1, col 72) hint: [tCBWla08512162]


都是报这个错

请求参数为:{“env”:"",“query”:“db.collection(\“test-20191016\”).where({title:\“试试\”}).update({data:{tags:_.addToSet(\“pspspsps\”)}})”}

其他的如shift、push、pop之类的都可以用,就是这三个用不了,是还没有开放吗?

1 回复

谢邀,没用过 HTTP API

使用云函数吧

回到顶部