Class: FindOperators

FindOperators

Handles the find operators for the bulk operations

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:

backwards compatability for delete

backwards compatability for deleteOne

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 modifier for update bulk operation

Throws: