|
|
|
|
<mongoCollection variable>.ExecuteCommand (Function) In french: <Variable mongoCollection>.ExécuteCommande Runs a generic command on a MongoDB collection. MDBCollection is mongoCollection // Running a command on a MongoDB collection MDBCollection.ExecuteCommand("{ ""ping"" : 1 }" )
Syntax
Running a command on a MongoDB collection Hide the details
<Result> = <Collection>.RunCommand(<Command>)
<Result>: mongoResult variable mongoResult variable corresponding to the result of command. If a problem occurs. ErrorInfo is used to identify the error. <Collection>: mongoCollection variable Name of the mongoCollection variable representing the MongoDB collection in which the command will run. <Command>: Character string, buffer or variant Document describing the command to run. This document can correspond to: - a document in JSON format. In this case, this parameter corresponds to a character string.
- a document in BSON format. In this case, this parameter corresponds to a buffer.
- a variant.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|