Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As such, there are no relationships in mongodb, because the database is not relational.
As an example, here is a solution for you https://stackoverflow.com/questions/2336700/mongod...
If you want to do everything in one request, then read here, you may find that https://docs.mongodb.com/manual/ aggregation/
yes, by the way, any connection options are decided by roles
, only the question of managing these roles arises, but this is all a matter of conventions
If there is a need for many-to-many relationships, then you should look towards relational databases. Monga is not the best solution in this case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question