On this page本页内容
cursor.
itcount
()¶mongo
Shell Method
This page documents the 本页记录了mongo
shell method, and does not refer to the MongoDB Node.js driver (or any other driver) method. mongo
shell方法,未提及MongoDB Node.js驱动程序(或任何其他驱动程序)方法。For corresponding MongoDB driver API, refer to your specific MongoDB driver documentation instead.有关相应的MongoDB驱动程序API,请参阅特定的MongoDB驱动程序文档。
Counts the number of documents remaining in a cursor.统计游标中剩余的文档数。
itcount()
is similar to cursor.count()
, but actually executes the query on an existing iterator, exhausting its contents in the process.itcount()
与cursor.count()
类似,但实际上是在现有迭代器上执行查询,在过程中耗尽其内容。
The itcount()
method has the following prototype form:itcount()
方法的原型形式如下:
See also参阅