how to refrence schema in my mongoose schema with populate function
Person.findOne({firstname:'Aaron'}).populate('eventsAttended')// only works if we pushed refs to person.eventsAttended.exec(function(err, person){if(err)returnhandleError(err);console.log(person);});