I have a following data model:
University
.Colleges
..Departments
...Instructors
....Reviews
....Trainings
How can I get all reviews in a given college?
var rquery = store.query('review', {faculty.department.college._id : college._id})
or
var rquery = store.query('review', {faculty.department.college : college})
gives me a syntax error.
SyntaxError: quality-online/components/quality-chart.js: Unexpected token (50:44)
What is the best practice in this case, and how should I implement it?
Alternatively I could go with top down approach, and query all departments, instructors and so on with some nested for loop structure but would like to go other way if possible.
Aucun commentaire:
Enregistrer un commentaire