I'm currently working on a project using mongodb as the database, it has node.js on the server and is using the mongoose package, i was wondering if it was possible to use native mongodb commands in mongoose.
Asked
Active
Viewed 2,322 times
1 Answers
1
You can use the node.js mongodb driver directly rather than mongoose as they have done in this question: runCommand equivalent for nodejs-native-mongodb
Namely:
this.db.command({ ... }, function(err, cb){ ... });