These are chat archives for Automattic/mongoose

10th
Apr 2019
Wyatt Carss
@wcarss
Apr 10 14:57

hey folks, I'm trying to model an m:n relationship using a reference on either side, and at the moment I'm manually stitching the references together non-atomically in my business logic.

In a past SQL life I would have used a reference and backreference in an ORM, or foreign key constraints to enforce the integrity of these links, but I can't seem to find any equivalent to backrefs in mongoose -- am I missing something?