Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross collection operations #323

Open
rogeredthat opened this issue Sep 18, 2018 · 0 comments
Open

Cross collection operations #323

rogeredthat opened this issue Sep 18, 2018 · 0 comments
Labels

Comments

@rogeredthat
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant