Skip to content

Commit

Permalink
fix(bulk-unordered): add check for ignoreUndefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord authored and mbroadst committed Oct 18, 2017
1 parent 86cbf2a commit f38641a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bulk/unordered.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ var executeBatch = function(self, batch, callback) {
finalOptions.serializeFunctions = true;
}

// Ingore undefined
if (self.s.options.ignoreUndefined) {
finalOptions.ignoreUndefined = true;
}

// Is the bypassDocumentValidation options specific
if (self.s.bypassDocumentValidation === true) {
finalOptions.bypassDocumentValidation = true;
Expand Down

0 comments on commit f38641a

Please sign in to comment.