I\'m trying to connect to my mongodb using nodejs and socket.io. I am able to connect to the database because I get \'connection accepted\' in my console bu
Shouldn't you specify the full path and have an export module?...something like:
mongoose.connection.db.collectionNames(function (err, names) { console.log(names); // [{ name: 'dbname.myCollection' }] module.exports.Collection = names; }
If I'm wrong it's because I don't fancy moongodb :)