typeodm
Advanced tools
Comparing version 0.0.22 to 0.0.23
{ | ||
"name": "typeodm", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "ODM for MongoDB used Typescript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -59,3 +59,3 @@ "use strict"; | ||
value: function hasId(document) { | ||
return document && document.hasOwnProperty(this.schema.idField.name); | ||
return document && this.schema.idField && document.hasOwnProperty(this.schema.idField.name); | ||
} | ||
@@ -62,0 +62,0 @@ }, { |
326295