robbiblubber.org

help | login | search:  
>>

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


runCommand()


MongoDB Driver Function Reference


Executes a database command.



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