Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Student.findOne({id:3}).populate('courses').exec(function(err, thisStudent) {
- for (i = 0; i < thisStudent.courses.length; i++) {
- var uc = thisStudent.courses[i].unit_code;
- Course.findOne({unit_code = uc}).populate(โlecturestreamsโ).exec(function(err, thisCourse) {
- res.view() {
- course: ?????????
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement