Posts by Elton Melo • 1 point
2 posts
-
0
votes1
answer291
viewsA: Node.js - Aggregate returns object
To show the expected result, you need to use JSON.stringfy(): var MongoClient = require('mongodb').MongoClient; var url = "mongodb://127.0.0.1:27017/mydb"; MongoClient.connect(url, function (err,…
-
0
votes1
answer291
viewsQ: Node.js - Aggregate returns object
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…