{"action":"created","issue":{"url":"https://api.github.com/repos/ngrx/platform/issues/1251","repository_url":"https://api.github.com/repos/ngrx/platform","labels_url":"https://api.github.com/repos/ngrx/platform/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/ngrx/platform/issues/1251/comments","events_url":"https://api.github.com/repos/ngrx/platform/issues/1251/events","html_url":"https://github.com/ngrx/platform/issues/1251","id":350718120,"node_id":"MDU6SXNzdWUzNTA3MTgxMjA=","number":1251,"title":"updateOne convert object into a string","user":{"login":"egiev","id":12962304,"node_id":"MDQ6VXNlcjEyOTYyMzA0","avatar_url":"https://avatars2.githubusercontent.com/u/12962304?v=4","gravatar_id":"","url":"https://api.github.com/users/egiev","html_url":"https://github.com/egiev","followers_url":"https://api.github.com/users/egiev/followers","following_url":"https://api.github.com/users/egiev/following{/other_user}","gists_url":"https://api.github.com/users/egiev/gists{/gist_id}","starred_url":"https://api.github.com/users/egiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egiev/subscriptions","organizations_url":"https://api.github.com/users/egiev/orgs","repos_url":"https://api.github.com/users/egiev/repos","events_url":"https://api.github.com/users/egiev/events{/privacy}","received_events_url":"https://api.github.com/users/egiev/received_events","type":"User","site_admin":false},"labels":[{"id":690576451,"node_id":"MDU6TGFiZWw2OTA1NzY0NTE=","url":"https://api.github.com/repos/ngrx/platform/labels/Project:%20Entity","name":"Project: Entity","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-15T07:53:19Z","updated_at":"2018-08-16T00:33:44Z","closed_at":null,"author_association":"NONE","body":"<!-- ❤️ ngrx? Please consider supporting our collective: 👉  [donate](https://opencollective.com/ngrx/donate) -->\r\n\r\n<!-- Please search GitHub for a similar issue or PR before submitting a new issue-->\r\n\r\n## Minimal reproduction of the bug/regression with instructions:\r\n\r\n<!-- Use the following StackBlitz example to create a reproduction: https://stackblitz.com/edit/ngrx-seed -->\r\n\r\n<!-- If the bug/regression does not include a reproduction via StackBlitz or GitHub repo, your issue may be closed without resolution. -->\r\n\r\n## Expected behavior:\r\nIt should not convert the object into a string\r\n\r\nI have a service that return a data from the API\r\nexample response:\r\n```javascript\r\n{\r\n  \"_id\":\"D704206235673\",\r\n  \"name\":\"D704206235673\",\r\n  \"group\":[],\r\n  \"location\":[0,0],\r\n  \"connectionStatus\":false,\r\n  \"isInactive\":false,\r\n  \"createdDate\":\"2018-08-15T07:13:20.771Z\",\r\n  \"updatedDate\":\"2018-08-15T07:13:20.771Z\",\r\n  \"__v\":0,\r\n  \"lastReadingDateTime\":\"2018-08-15T07:25:39.745Z\",\r\n  \"metadata\":{}\r\n}\r\n```\r\nWhen I pass the response data as payload to **updateOne** method the **metadata** property in the **Collection** turns into a string\r\n\r\nAction:\r\n```javascript\r\nexport const UpdateInfo implements Action {\r\n  readonly type = '[Device] Update'\r\n  constructor(public payload: Update<Device>)  {}\r\n}\r\n```\r\n\r\nReducer:\r\n```javascript\r\n{\r\n  ...adapter.updateOne(action.payload, state)\r\n}\r\n```\r\n<!-- Describe what the expected behavior would be. -->\r\n\r\n## Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):\r\nAngular 5.0.0\r\nNgRx 4.1.1\r\n## Other information:\r\n\r\n## I would be willing to submit a PR to fix this issue\r\n\r\n[ ] Yes (Assistance is provided if you need help submitting a pull request)\r\n[ x] No"},"comment":{"url":"https://api.github.com/repos/ngrx/platform/issues/comments/413383289","html_url":"https://github.com/ngrx/platform/issues/1251#issuecomment-413383289","issue_url":"https://api.github.com/repos/ngrx/platform/issues/1251","id":413383289,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzM4MzI4OQ==","user":{"login":"kouMatsumoto","id":15353515,"node_id":"MDQ6VXNlcjE1MzUzNTE1","avatar_url":"https://avatars0.githubusercontent.com/u/15353515?v=4","gravatar_id":"","url":"https://api.github.com/users/kouMatsumoto","html_url":"https://github.com/kouMatsumoto","followers_url":"https://api.github.com/users/kouMatsumoto/followers","following_url":"https://api.github.com/users/kouMatsumoto/following{/other_user}","gists_url":"https://api.github.com/users/kouMatsumoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kouMatsumoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kouMatsumoto/subscriptions","organizations_url":"https://api.github.com/users/kouMatsumoto/orgs","repos_url":"https://api.github.com/users/kouMatsumoto/repos","events_url":"https://api.github.com/users/kouMatsumoto/events{/privacy}","received_events_url":"https://api.github.com/users/kouMatsumoto/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T00:33:44Z","updated_at":"2018-08-16T00:33:44Z","author_association":"CONTRIBUTOR","body":"I don't think it might be the issue of NgRx.\r\nupdateOne method doesn't modify the specific property. it just replace the object reference with new one."}}
{"actor":{"display_login":"kouMatsumoto"}}