Closed arunbandari closed 4 years ago
Document in DB: { "name": "arun", "doj": 2018-02-28T09:20:59.000Z } here typeof doj is date
{ "name": "arun", "doj": 2018-02-28T09:20:59.000Z }
Document received by the client: { "name": "arun", "doj": "2018-02-28T09:20:59.000Z" } here typeof doj is string
{ "name": "arun", "doj": "2018-02-28T09:20:59.000Z" }
The following are few more types with the same behaviour
Send the response to client in such a way that the client can restore the original document somehow.
Document in DB:
{ "name": "arun", "doj": 2018-02-28T09:20:59.000Z }
here typeof doj is dateDocument received by the client:
{ "name": "arun", "doj": "2018-02-28T09:20:59.000Z" }
here typeof doj is stringThe following are few more types with the same behaviour
Send the response to client in such a way that the client can restore the original document somehow.