robbiblubber.org

help | login | search:  
>>

read  source  history 


= count() =
----
[[MongoDB Driver Function Reference]]


Counts the records in the input result set.


[[[@cG

<cursor>.count()

]]]


**Arguments**

[[[@w

|@t0@r0@c0 <cursor> | | A result set. |

]]]


**Returns**

[[[@w

Returns a result set (cursor).

]]]


**Example**

[[[@cw

db.employees.find().count();

]]]

Returns the number of documents in the //employee// collection.







----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]