【问题标题】:$in operator titanium sdk not working #appcelerator$in 运算符钛 sdk 不工作#appcelerator
【发布时间】:2016-02-05 10:23:17
【问题描述】:

我的代码是这样的

Cloud.Events.query({
            where: {
            tags : {'$in': ['movie','netflix']}

        }   

        }, function (e) {//continues

在 arrowdb 后端,我已经推送了值以使事件的标签看起来像[" ","movie","netflix"]。它不接这个事件。我正在使用 Titanium SDK 语法。

【问题讨论】:

  • 如果您请求所有事件的列表(通过省略在哪里或使用带有 id 的 .show()?
  • 我已将其归档为错误

标签: javascript appcelerator appcelerator-titanium appcelerator-arrow


【解决方案1】:

过去我也遇到过一些麻烦。

我用语法解决了它。

最后,我找到了这样的解决方案:

var where = null

where.tags = {
    '$in': [your array]
};

Cloud.Events.query({
    where: where
}, function (e) {});

希望对你有帮助。

【讨论】:

  • 这导致相同的有效负载
猜你喜欢
  • 2012-08-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-01-05
  • 1970-01-01
相关资源
最近更新 更多