diff --git a/packages/minimongo/minimongo.js b/packages/minimongo/minimongo.js index da65f69631..3a5976b10d 100644 --- a/packages/minimongo/minimongo.js +++ b/packages/minimongo/minimongo.js @@ -841,7 +841,7 @@ LocalCollection._idStringify = function (id) { } } else if (id === undefined) { return '-'; - } else if (typeof id === 'object') { + } else if (typeof id === 'object' && id !== null) { throw new Error("Meteor does not currently support objects other than ObjectID as ids"); } else { // Numbers, true, false, null return "~" + JSON.stringify(id);