MongoDB Challenge: FIND Exercise: results did not match expected

MongoDB Challenge: FIND Exercise: results did not match expected
0

#1

Here’s my solution:

  var mongo = require('mongodb').MongoClient;

    mongo.connect('mongodb://localhost:27017/learnyoumongo', function(err, db) {
          // db gives access to the database
          var parrot = db.collection('parrot');
          parrot.find({ age: { $gt: parseInt(process.argv[2]) }}).toArray(function(err, documents){
          	console.log(documents);
          		      });  

      });

     db.close();

``

And I’m getting these results:
"" != "[ { _id: 593e84a8d8f6617bd65e0682, name: 'Jenny', age: 10 } ]" != ""


#2

Sorry, I had a typo parrots instead of parrot at db.collection('parrot');.