Wednesday, 12 April 2017

How to parse object id from object

I have two type of projects, Java and Node js

The java project returns the details with ObjectId

{
        "timestamp": 1491806328,
        "machineIdentifier": 9737042,
        "processIdentifier": 6393,
        "counter": 1399563,
        "date": 1491806328000,
        "time": 1491806328000,
        "timeSecond": 1491806328
    }

In node Js I am using the Mongoose. Now I dont know how to parse this to nodejs equalant ObjectId.



via vimal prakash

No comments:

Post a Comment