Search code examples
node.jsmongodbmongoosenode-mongodb-nativemongojs

Equivalent to mongo shell db.collection.runCommand() in Node.js


I'd like to use full text search available in MongoDB 2.4. Text search is available through runCommand function e.g. db.collection.runCommand( "text", { search: "keywords"}). So, I'm wondering whether there is an equivalent to runCommand() function in mongojs or node-mongodb-native modules.

I know the question has been touched before but was never answered sufficiently. Thanks in advance.


Solution

  • runCommand support has been added! https://github.com/gett/mongojs/issues/62