Skip to content

Commit f38641a

Browse files
Jessica Lordmbroadst
Jessica Lord
authored andcommitted
fix(bulk-unordered): add check for ignoreUndefined
NODE-1155
1 parent 86cbf2a commit f38641a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/bulk/unordered.js

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ var executeBatch = function(self, batch, callback) {
463463
finalOptions.serializeFunctions = true;
464464
}
465465

466+
// Ingore undefined
467+
if (self.s.options.ignoreUndefined) {
468+
finalOptions.ignoreUndefined = true;
469+
}
470+
466471
// Is the bypassDocumentValidation options specific
467472
if (self.s.bypassDocumentValidation === true) {
468473
finalOptions.bypassDocumentValidation = true;

0 commit comments

Comments
 (0)