new FindOperators(bulkOperation)
Name | Type | Description |
---|---|---|
bulkOperation |
OrderedBulkOperation | UnorderedBulkOperation |
Methods
-
delete(){OrderedBulkOperation|UnordedBulkOperation}
-
Add a delete operation to the bulk operation
Throws:
-
deleteOne(){OrderedBulkOperation|UnordedBulkOperation}
-
Add a delete one operation to the bulk operation
Throws:
-
remove()
-
backwards compatability for delete
-
removeOne()
-
backwards compatability for deleteOne
-
replaceOne(updateDocument){OrderedBulkOperation|UnorderedBulkOperation}
-
Add a replace one operation to the bulk operation
Name Type Description updateDocument
object the new document to replace the existing one with
Throws:
-
update(updateDocument){OrderedBulkOperation|UnordedBulkOperation}
-
Add a single update document to the bulk operation
Name Type Description updateDocument
object update operations
Throws:
-
updateOne(updateDocument){OrderedBulkOperation|UnordedBulkOperation}
-
Add a single update one document to the bulk operation
Name Type Description updateDocument
object update operations
Throws:
-
upsert(){FindOperators}
-
Upsert modifier for update bulk operation
Throws: