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:
While this is true, you can specify the name of the collection in the third argument and it will use the case from that string:
var sampleCollection = mongoose.model('sampleCollection', sampleSchema,'SampleCollection');