Hi all, I’m new to Mongo and I have to figure out something before selecting it as the right tool.
I need to store a list of tasks, and each one can contain other tasks. Moreover at a certain point in the development we will introduce a layer above which means all the parent tasks will become children tasks of others.
How can this be implemented and it is a good idea?
The alternatives I’m thinking of are:
- write each subtask inside a list property of their parent task, but then I will be stuck when need an above layer
- treat all tasks as same and reference the parent with an Id (like I would do in a SQL db), and for this case I don’t know how easy is to query and update everything
Thanks in advance