Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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


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


Returns number or error.


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


Query collection size:

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

See also

Example Databases

Blog Entries

This function checks for a license.

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

MongoDB.DeleteOne - MongoDB.Find