I have millions of documents with the following schema:
{
_id: '3fbwehgzgfwehgrqwegrqwer',
someData: [0,1],
moreData: {
key: true
}
},
{
_id: '24nj5h219ebwjfqwverqwer',
someData: [2,3],
moreData: {
key: true
}
},
I need the someData array combined in a result array like:
{
result: [
[0,1],
[2,3]
]
}