Platforms to show: All Mac Windows Linux Cross-Platform
Back to MongoBulkOperationMBS class.
MongoBulkOperationMBS.Constructor(Collection as MongoCollectionMBS, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
After creating this you may call various functions such as Update(), Insert() and others.
After calling Execute() the commands will be executed in as large as batches as reasonable by the client.
See also:
MongoBulkOperationMBS.Constructor(ordered as boolean = false)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
MongoBulkOperationMBS.Execute as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Unless ordered = false was specified in the opts passed to Constructor, then forward progress will be stopped upon the first error.
It is only valid to call Execute once. The bulk operation must be destroyed afterwards.
Returns the result or raises an exception.
Stores the used server id in the UsedServerId property.
MongoBulkOperationMBS.Insert(documentJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The insert is not performed until Execute() is called.
MongoBulkOperationMBS.RemoveMany(selectorJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This only queues the operation. To execute it, call Execute().
MongoBulkOperationMBS.RemoveOne(selectorJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This only queues the operation. To execute it, call Execute().
MongoBulkOperationMBS.ReplaceOne(selectorJSON as String, documentJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This only queues the operation. To execute it, call Execute().
See also:
MongoBulkOperationMBS.ReplaceOne(selectorJSON as String, documentJSON as String, Upsert as Boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This only queues the operation. To execute it, call Execute().
See also:
MongoBulkOperationMBS.UpdateMany(selectorJSON as String, documentJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This does not execute the operation. To execute the entirety of the bulk operation call Execute().
See also:
MongoBulkOperationMBS.UpdateMany(selectorJSON as String, documentJSON as String, Upsert as Boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This does not execute the operation. To execute the entirety of the bulk operation call Execute().
document MUST only contain fields whose key starts with $. See the update document specification for more details.
This function is superseded by UpdateMany or UpdateOne with options.
See also:
MongoBulkOperationMBS.UpdateOne(selectorJSON as String, documentJSON as String, OptionsJSON as String = "")
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It will only modify a single document on the MongoDB server. This function does not execute the operation. To execute the entirety of the bulk operation call Execute().
See also:
MongoBulkOperationMBS.UpdateOne(selectorJSON as String, documentJSON as String, Upsert as Boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | MongoDB | MBS MongoDB Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It will only modify a single document on the MongoDB server. This function does not execute the operation. To execute the entirety of the bulk operation call Execute().
This function is superseded by UpdateOne with options.
See also:
The items on this page are in the following plugins: MBS MongoDB Plugin.