PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Runs a generic command on a MongoDB database or on a MongoDB collection.
Versions 24 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 24
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Run a command on a MongoDB database
MongoExecuteCommand(DatabaseMDB, "{ ""ping"" : 1 }" )
Syntax

Running a command on a MongoDB database Hide the details

<Result> = MongoExecuteCommand(<Database> , <Command>)
<Result>: mongoResult variable
mongoResult variable corresponding to the result of command. If a problem occurs. ErrorInfo is used to identify the error.
<Database>: mongoDatabase variable
Name of mongoDatabase variable corresponding to the MongoDB database where the command will be 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.

Running a command on a MongoDB collection Hide the details

<Result> = MongoExecuteCommand(<Collection> , <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 mongoCollection variable representing the MongoDB collection where the command will be 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.
Component : wd240big.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment