I run the examples simple.js to test the query data from the 'wines' collection. But no success.
I have tried those,
db.collection('wines', function(err, collection){
collection.findOne({"name": "Sunnyside Pinot"}, function(err, doc){
console.log('doc: ', doc);
})
}) ;
db.collection('wines').findOne({}, function(err, doc){
})
None of these is taking me any further, could you help me how to use this library? Thanks.