diff --git a/packages/mongo/collection.js b/packages/mongo/collection.js index 05446b6861..0585b4bca7 100644 --- a/packages/mongo/collection.js +++ b/packages/mongo/collection.js @@ -449,6 +449,7 @@ Mongo.Collection = class Collection { // Make sure we were passed a document to insert if (!doc) { throw new Error("insert requires an argument"); + } // Make a shallow clone of the document, preserving its prototype. doc = Object.create(