MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

Equivalente a mongo shell db.collection.runCommand() in Node.js

L'ho trovato come equivalente:

collection.find({ $text: { $search : "your search words" }})
  .toArray(function(err,results) {
    // ..callback stuff..
});