JaysGitLab / cs5667-final-project-revdev

cs5667-final-project-revdev created by GitHub Classroom
MIT License
1 stars 0 forks source link

Model references #43

Open haietza opened 6 years ago

haietza commented 6 years ago

The ref to the Event document in the Reservation model does not actually store all the details of the Event in the Reservation document. It only stores the ObjectID. I looked at using populate() to get the Event data into the Reservation document when it is created but that did not appear to do anything. So we'll need to revisit this in order to make sure the Reservation documents are accurate.

Note: The event and reservation both have to be saved before .populate() will work.