Currently when adding an empty array using queue.add an error will
be thrown by MongoDB clients (at least in version 2.x.x), this performs
a check on the payload of add.
If it's an array with a length of 0 an error with a more descriptive message
will be returned instead of MongoError: Invalid Operation, No operations in bulk
being thrown.
Currently when adding an empty array using
queue.add
an error will be thrown by MongoDB clients (at least in version 2.x.x), this performs a check on the payload ofadd
.If it's an array with a length of 0 an error with a more descriptive message will be returned instead of
MongoError: Invalid Operation, No operations in bulk
being thrown.