I am facing one issue regarding to many to many relationship in Mongo collections.
Brief: I have jobs collection and it has reference to employee collection, as an array, and vice versa.
My Job Schema Mongoose (part of it)
In my Employee Collection (part of it)
I have ref to jobs, so Employee contains applied jobs as array of jobs.
In this case I got many-to-many relationshop. I know about rule < Avoid Unbounded Arrays > 16mb
But how can I avoid it in this scenario. Nice to hear any suggestions.
Thanks in advance