These are chat archives for Automattic/mongoose

2nd
Sep 2017
black09bb
@black09bb
Sep 02 2017 12:52

Hey, can someone tell me why mongoose result (foundedCompany) from code:
Company.findById( req.params.id, (err, foundedCompany) => { })
is different than copied result from postman or any web browser? If I open this rest in web browser, I get something like :

[{
  "_id": "599c1f79f339dc3991d8250a",
  "name": "Robert",
  "children": [ ],
  "__v": 0,
  "parent": null,
  "shareholder": [ ],
  "createdDate": "2017-08-22T12:11:37.005Z"
},
{
  "_id": "599c1f82f339dc3991d8250b",
  "name": "Robert 1",
  "parent": "599c1f79f339dc3991d8250a",
  "children": [ ],
  "__v": 0,
  "shareholder": [ ],
  "createdDate": "2017-08-22T12:11:46.938Z"
}]

And if I copy this to any variable , and compare it with foundedCompany , I get false response :/

vkonvincing
@vkonvincing_twitter
Sep 02 2017 22:24
Hey guys, anyone here?