You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the logic handling the registering/deregistering or addition/deletion of events can be handed off to mongoose middleware.
I think we would only need post hooks. These things are ideal for handling interdependent collections. Perhaps we could reduce the amount of code we have in our routes/api/models files.
Also look at mongoose's ref property. Fields of ObjectID type get a ref attribute referencing the other collection. I was hoping this would make getting the referenced document comparatively easier.
The text was updated successfully, but these errors were encountered:
All the logic handling the registering/deregistering or addition/deletion of events can be handed off to mongoose middleware.
I think we would only need post hooks. These things are ideal for handling interdependent collections. Perhaps we could reduce the amount of code we have in our
routes/api/models
files.Also look at mongoose's
ref
property. Fields of ObjectID type get a ref attribute referencing the other collection. I was hoping this would make getting the referenced document comparatively easier.The text was updated successfully, but these errors were encountered: