我正在执行多级内部查询,但它给了我一个带有find()函数的400错误请求,我做错了什么?
var EducationVenue = Parse.Object.extend("EducationVenue");
var EducationVenueRoom = Parse.Object.extend("EducationVenueRoom");
var EducationLessonSet = Parse.Object.extend("EducationLessonSet");
var EducationLesson = Parse.Object.extend("EducationLesson");
var eduLessonSetQuery = new Parse.Query(EducationLessonSet);
eduLessonSetQuery.matchesQuery("educationListingId", eduListingQuery);
var eduLessonQuery = new Parse.Query(EducationLesson);
eduLessonQuery.matchesQuery("educationLessonSetId", eduLessonSetQuery);
eduLessonQuery.include('educationVenueRoomId.educationVenueId');
$scope.coursesAtLocations = [];
eduLessonQuery.find({
success: function(coursesAtLocations) {
for (var i = 0; i < coursesAtLocations.length; i++) {
$scope.coursesAtLocations.push(coursesAtLocations[i]);
console.log('c at loc' + coursesAtLocations[i]);
}
}
});
原因是“查询有太多嵌套查询”,对此更方便的解决方法是什么?