sql >> Base de Datos >  >> NoSQL >> MongoDB

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

Encontré eso como un equivalente:

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