I\'m trying to get the result of query but i get the same info in all vars: db, collection and res:
var mongodb = require(\"mongodb\"); var mongoserver = new
You can use this:
collection.find().toArray(function(err, docs){ console.log(docs); )};