robbiblubber.org

help | login | search:  
>>

read  source  history 


runCommand()


MongoDB Driver Function Reference


Executes a database command.
More information can be found in the corresponding entry of the MongoDB Manual.



db.runCommand(<command>])



Arguments


<command> A document specifying a database command.



Return Value


Returns a result set (cursor).



Example


db.runCommand({count: "employees"});


Executes a count database command.







home | MongoDB Driver Function Reference | MongoDB Driver