Mongoose findById returning null for first object when the object exists Mongoose findById returning null for first object when the object exists mongoose mongoose

Mongoose findById returning null for first object when the object exists


The issue turned out to be mongoose-simpledb. I'm not sure if the issue is a bug in mongoose-simpledb or a conflict with tungus, but the "same" code works fine once mongoose-simpledb is removed.