Queries hang when using mongoose.createConnection() vs mongoose.connect()

Unfortunately, this isn’t a simple refactor. 1) .createConnection vs .connect When using .createConnection, you access models via the explicit connection you create with this call. This means that instead of User = mongoose.model(…) you need User = db.model(…). Examples (one, two, three, four) show this isn’t complicated but the change is subtle enough that many … Read more