0
I am doing locally the Node.js exercise as Mongodb proposed in https://www.w3schools.com/nodejs/nodejs_mongodb_join.asp
There are two collections, Orders and product.
After aggregation, the expected result would be:
[
{ _id: 1, product_id: 154, status: 1, orderdetails: [
{ _id: 154, name: 'Chocolate Heaven' } ]
}
]
However, in my local instance, I am getting the following:
[ { _id: 1, product_id: 154, status: 1, orderdetails: [ [Object] ] } ]
Is there some trick to the [Object] be shown as { _id: 154, name: 'Chocolate Heaven' } ?
Thank you!