robbiblubber.org

help | login | search:  
>>

show wiki  show source  compare to current  compare to previous  read  history 


db.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