Answer the question
In order to leave comments, you need to log in
How to aggregate nesting greater than 2 in MongoDB?
Good afternoon.
There are three tables:
[
{
_id: '1111111111'
galaxyNumber: 1
systems: [
'2222222222'
]
}
]
[
{
_id: '2222222222'
systemNumber: 1
planets: [
'3333333333'
]
}
]
[
{
_id: '333333333'
name: 'Земля'
}
]
[
{
_id: '1111111111'
galaxyNumber: 1
systems: [
{
_id: '2222222222'
systemNumber: 1
planets: [
{
_id: '333333333'
name: 'Земля'
}
]
}
]
}
]
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