ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / Big Data / Managing Mongo data files
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Performs MongoDB write operations in bulk. This allows you to avoid network latency issues you would encounter if you performed the operations individually.
Example
gclCollection is mongoCollection
tabOp is array of mongoOperation
opAjout1 is mongoOperationAdd
opAjout1.Document = doc1
tabOp.Add(opAjout1)
opAjout2 is mongoOperationAdd
opAjout2.Document = doc2
tabOp.Add(opAjout2)
opModifie is mongoOperationUpdateAll
opModifie.Filter = "{ ""Nom"": ""SMITH"" }"
opModifie.Update = "{ ""$set"": { ""Nom"": ""PAULSON"" } }"
tabOp.Add(opModifie)
opSupprime is mongoOperationDeleteAll
opSupprime.Filter = "{ ""Prenom"": ""Robert"" }"
MongoExecuteOperations(gclCollection, tabOp)
Syntax
<Result> = MongoExecuteOperations(<Collection> , <Operations> [, <Execution option> [, <Level of acknowledgment>]])
<Result>: Variant or JSON
Details of the completed operations.
<Collection>: mongoCollection variable
Name of the mongoCollection variable that represents the collection in which the operations must be performed.
<Operations>: Array of mongoOperation variables
Array of mongoOperation variables. This array contains the variables corresponding to the operations to be performed in bulk: These write operations will be performed in bulk.
<Execution option>: Optional mongoOperationsOption variable
Name of the mongoOperationsOption variable that corresponds to the options of the bulk operations.
<Level of acknowledgment>: Optional mongoWriteConcern variable
Name of the mongoWriteConcern variable used to specify the level of acknowledgement requested for bulk operations.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help