2

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.

thejus_r
  • 291
  • 2
  • 5
  • 17

1 Answers1

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){ ... });
Community
  • 1
  • 1
idbentley
  • 4,188
  • 3
  • 34
  • 50