title: Mongoose JS queries all coming back null or empty
body: <p>I am trying to create a simple MongooseJS example program that gets a list of items from a collection, and it's coming back empty every time. Here is the code:</p>
  
  <pre><code>var mongoose = require('mongoose')
    , Schema = mongoose.Schema;
  
  var sampleSchema = new Schema({
      sampleField    : String
  });
  
  var db = mongoose.connect('mongodb://localhost:27017/test');
  
  var sampleCollection = mongoose.model('sampleCollection', sampleSchema);
  
  sampleCollection.find({ } , function (err, items) {
      console.log(items); // outputs []
      console.log(err); // outputs null
      items.forEach( function(item) {
          console.log(item); // does not reach this code
      });
  });
  </code></pre>
  
  <p>I have a default instance of MongoDB running, and this is what I've entered in the shell:</p>
  
  <pre><code>&gt; use test
  &gt; db.sampleCollection.save({sampleField : "Hello"});
  &gt; db.sampleCollection.save({sampleField : "Goodbye"});
  &gt; db.sampleCollection.find({});
  { "_id" : ObjectId("4f28944b38b59225012109da"), "sampleField" : "Hello" }
  { "_id" : ObjectId("4f28945138b59225012109db"), "sampleField" : "Goodbye" }
  </code></pre>
  
  <p>Any idea why my code doesn't return any data?</p>
  
  <p>Thanks for your help,
  Dave</p>