Check if the _id field is present and its type is ObjectId. This is useful in case schema was defined with _id field with a type other than ObjectId. I.e. I am using mongoose-shortid and getting an error when this module trying to extract a timestamp from ObjectID.
Check if the _id field is present and its type is ObjectId. This is useful in case schema was defined with _id field with a type other than ObjectId. I.e. I am using mongoose-shortid and getting an error when this module trying to extract a timestamp from ObjectID.