I want to convert ObjectID (Mongodb) to String in JavaScript. When I get a Object form MongoDB. it like as a object has: timestamp, second, inc, machine. I can\'t convert to
Just use this : _id.$oid
_id.$oid
And you get the ObjectId string. This come with the object.