【发布时间】:2015-03-05 12:25:27
【问题描述】:
我正在使用 Javascript,并且我有两个 Parse 表。一个表有一个“用户”字段,其中有一个指向用户表的指针。我想对第一个表进行查询,在该表中我通过指针的 objectId(“用户”字段)过滤结果。
我尝试了几种方法,例如使用点表示法和 containerIn 和 equalTo 或将查询与内部查询匹配。通过查看其他来源,我觉得这是这两个盟友之一,但显然我的表现不佳。这是我的一次尝试中的代码:
var innerQuery = new Parse.Query(Parse.User);
innerQuery.equalTo("objectId", conId); //where conId is an array of ObjectIds
tQuery.matchesQuery("user", innerQuery); //where "user" is the field in the tQuery table with the pointer to the User table.
【问题讨论】:
标签: javascript pointers parse-platform