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


Creates a query cursor.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.ClientCommandQuery"; MongoDBRef; dbName; query )   More


Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB
dbName The name of the database to run the command on.
query The query as JSON.


Returns OK or error.


Creates a query cursor.
This function creates a cursor which will execute the command when MongoDB.CursorNext is called on it. The client’s read preference, read concern, and write concern are not applied to the command, and MongoDB.CursorNext will not check the server response for a write concern error or write concern timeout.

See also

Release notes

Blog Entries

This function checks for a license.

Created 20th March 2024, last changed 20th March 2024

MongoDB.ClientCommand - MongoDB.ClientCommandWithServerId