parse.com - Query Relational data on Parse -


i have seen other questions relating querying relational data on parse , don't quite meet need.

i have 3 related classes: teacher (1->many) course (many<-1) category

given above structure, want query instructors have courses fall under category. here have far:

    var category = parse.object.extend("category");     var category = new category();     category.id = "shdh43ay";      var course = parse.object.extend("course"); //there pointers on course both teacher , category     var coursequery = new parse.query(course);     coursequery.equals('category', category);       var teacher = parse.object.extend("teacher");     var teacherquery = new parse.query(teacher);     teacherquery.matchesquery(); //here stuck 

it doesn't me matchesquery trick, ideas welcome


Comments

Popular posts from this blog

Why does Go error when trying to marshal this JSON? -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

python - Pygame. TypeError: 'pygame.Surface' object is not callable -