We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fbd014 commit 4feea3bCopy full SHA for 4feea3b
1 file changed
lib/index.js
@@ -543,21 +543,6 @@ function getSchemaOrParent (key, schema) {
543
}
544
545
546
-/**
547
- * Takes object and casts fields to BSON types as per this model's schema
548
- *
549
- * @param {object} obj
550
- * @return undefined
551
- * @api private
552
- */
553
-// DataStore.prototype.castToBSON = function (obj) {
554
-// // TODO: Do we need to handle casting for all fields, or will `_id` be the only BSON specific type?
555
-// // this is starting to enter ODM land...
556
-// if (typeof obj._id === 'string' && ObjectID.isValid(obj._id) && obj._id.match(/^[a-fA-F0-9]{24}$/)) {
557
-// obj._id = ObjectID.createFromHexString(obj._id)
558
-// }
559
560
-
561
/**
562
*
563
*/
0 commit comments