var schema = new Schema({..}, { bufferCommands: false })
Without this, uses of Mongoose models will fail silently and hang forever. The deepest programmer hell. Set bufferCommands
to false
when definining your schema so that using a Mongoose model when no mongo connection exists will produce logs. It will still hang forever. I'm not sure Mongoose provides a way to avoid that.