我在Parse中有两个表 *表1包含字段:f1,f2,f3,f4 *表2,字段:f1,f2,f6,f7
从表2中检索时,想要与table1..matchesKeyInQuery一起使用,只能用于一个键f1。虽然如果我想做f1和f2两者。它不起作用。
添加了代码(如果我只使用一个密钥加入它,那么两者都不起作用)
var favourites = Parse.Object.extend("Favourites");
var favouritesQuery = new Parse.Query(favourites);
favouritesQuery.equalTo("ExternalProvider", 'gmail');
favouritesQuery.equalTo("ExternalId", 'abc@gmail.com');
var verses = Parse.Object.extend("Verses");
var versesQuery = new Parse.Query(verses);
versesQuery.matchesKeyInQuery("Book", "Book", favouritesQuery);
versesQuery.matchesKeyInQuery("ChapterNumber", "ChapterNumber", favouritesQuery);
//versesQuery.matchesKeyInQuery("VerseNumber", "VerseNumber", favouriteQuery);
versesQuery.find({
success: function(results) {
console.log(results.length);
for (i=0;i<results.length;++i){
//console.log(results);
}
}
});