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

MongoDB.ClientCommandWithServerId

This function executes a command on a specific server, using the database and command specification provided.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.ClientCommandWithServerId"; MongoDBRef; dbName; query; serverId )   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.
serverId An opaque id specifying which server to use. 123

Result

Returns OK or error.

Description

This function executes a command on a specific server, using the database and command specification provided.
This function is not considered a retry-able read operation.

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.ClientCommandQuery - MongoDB.CloseChangeStream