Optional. An object that specifies the optional settings. Valid options
boolean (default = true)
Execute write operation in ordered or unordered fashion. By
default, Atlas executes bulk write operations one at a time in
the specified order (i.e. serially). During an ordered bulk write,
if an error occurs during the processing of an operation, Atlas
returns without processing the remaining operations in the list.
In contrast, when ordered is false, MongoDB continues to
process remaining write operations in the list. Unordered
operations are theoretically faster since MongoDB can execute
them in parallel, but should only be used if the writes do not
depend on order.
boolean (default = false)
Allow the driver to bypass schema validation
optional session to use for this operation
The collection.bulkWrite() function returns a Promise that resolves to null.