-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Critical - P2
-
None
-
Affects Version/s: 3.0.0
-
Component/s: None
-
Environment:node.js
Got some strange behavior where my system sometimes had infinity listed as the _id value for some documents.
Looked into it and indeed:
> db.routes.find({$where:'this._id == Infinity'}).count()
7
Looking at a specific instance of this, indeed, I can see where the mix up happens:
> db.routes.findOne({$where:'this._id == Infinity'})._id
ObjectId("5225141150742e0000001340")
It looks like scientific notation to weakly typed Javascript.
Maybe I'm being sloppy somewhere and I'll certainly hack around it... but would be nice if this didn't happen.
PS I love mongo and have your bumper stickers on my car.
Zach