Javascript 使用parse.com中另一个表中的greaterThan on Date

Javascript 使用parse.com中另一个表中的greaterThan on Date,javascript,parse-platform,Javascript,Parse Platform,我正在用ionic和parse.com(使用JS)构建一个应用程序。 我有三张桌子: User(username,password); Question(questionStr, endAt(date), user(pointer to User)); QuestionShare(question (pointer to Question), responseStr, user(pointer to User)); 我想要的是选择所有QuestionShare,其中QuestionSha

我正在用ionic和parse.com(使用JS)构建一个应用程序。 我有三张桌子:

 User(username,password);
 Question(questionStr, endAt(date), user(pointer to User));
 QuestionShare(question (pointer to Question), responseStr, user(pointer to User));
我想要的是选择所有QuestionShare,其中QuestionShare.user=Parse.user.current()和Question.endAt>指定日期

我试过:

 var QuestionShare = Parse.Object.extend("QuestionShare");
 var query = new Parse.Query(QuestionShare);
 query.equalTo("user", Parse.User.current());
 query.include("question");
 query.greaterThanOrEqualTo("question.endAt", new Date());
我希望这是可能的,如果不是,我将不得不自己用JS过滤结果