Answer the question
In order to leave comments, you need to log in
Is it logical to build a complex structure in MongoDB?
Let's say I have a structure that can be implemented in one users collection containing information about the user + nested array clusters, which, in turn, contains information about the cluster and another nested array bots, which contains information about the bots of the cluster, and so on.
1. Should it be implemented as a single collection with a ten-level array, getting only the desired output using $filter, or is it not the MongoDB-way and still makes sense to do several collections with different data types containing the ObjectID of related documents?
2. Maybe there is another NoSQL database that is more suitable for such structures?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question