Closed luchoCap closed 3 years ago
Something like
var mongoose = require('mongoose')
var mongoDbQueue = require('mongodb-queue')
mongoose.connect('mongodb://localhost:27017/mydb',{useNewUrlParser: true})
.then(() => {
var queue = mongoDbQueue(mongoose.connection.db, "myQueue");
})
works
Thanks @luchoCap and @mchapman.
I'm trying to connect mongodb-queue with mongoose but i can't do it. Could you help me? Thanks