Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    Statistic    FMM    Blog  

MongoDB.EstimatedDocumentCount

Executes a count query on collection.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.EstimatedDocumentCount"; MongoDBRef )   More

Parameters

Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB

Result

Returns number or error.

Description

Executes a count query on collection.
The count returned is not guaranteed to be accurate.

Examples

Query collection size:

Set Variable [ $r ; Value: MBS( "MongoDB.OpenCollection"; $Mongo; "test" ) ]
Show Custom Dialog [ "Estimated record count:" ; MBS( "MongoDB.EstimatedDocumentCount"; $mongo ) ]

See also

Blog Entries

Created 19th June 2022, last changed 20th June 2022


MongoDB.DeleteOne - MongoDB.Find

Feedback: Report problem or ask question.


Start Chat