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

MongoDB.ClientCommandQuery

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

Parameters

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.

Result

Returns OK or error.

Description

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

  • Version 14.2
    • Added MongoDB.ClientCommand, MongoDB.ClientCommandQuery and MongoDB.ClientCommandWithServerId functions.

Blog Entries

This function checks for a license.

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


MongoDB.ClientCommand - MongoDB.ClientCommandWithServerId