{"action":"created","issue":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/421","repository_url":"https://api.github.com/repos/techfort/LokiJS","labels_url":"https://api.github.com/repos/techfort/LokiJS/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/techfort/LokiJS/issues/421/comments","events_url":"https://api.github.com/repos/techfort/LokiJS/issues/421/events","html_url":"https://github.com/techfort/LokiJS/issues/421","id":155223071,"number":421,"title":".update(obj) don't save new fields","user":{"login":"solisoft","id":6237,"avatar_url":"https://avatars.githubusercontent.com/u/6237?v=3","gravatar_id":"","url":"https://api.github.com/users/solisoft","html_url":"https://github.com/solisoft","followers_url":"https://api.github.com/users/solisoft/followers","following_url":"https://api.github.com/users/solisoft/following{/other_user}","gists_url":"https://api.github.com/users/solisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/solisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solisoft/subscriptions","organizations_url":"https://api.github.com/users/solisoft/orgs","repos_url":"https://api.github.com/users/solisoft/repos","events_url":"https://api.github.com/users/solisoft/events{/privacy}","received_events_url":"https://api.github.com/users/solisoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-17T10:10:08Z","updated_at":"2016-05-17T10:23:19Z","closed_at":null,"body":"Hi,\r\n\r\nI'm working on a new project using lokijs\r\nI have a little issue while updating : \r\n\r\n````\r\nvar a = mymodel.insert({ a: 1 });\r\na.b = 2;\r\na = mymodel.update(a);\r\nconsole.log(a.b) // will return 2\r\n````\r\n\r\nIf I reload my page, and do \r\n````\r\nvar a = mymodel.get(mylastID) // load previous inserted object\r\nconsole.log(a.b) // will return undefined\r\n````\r\n\r\nIt is possible to update a document with new keys ?\r\n "},"comment":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/comments/219678007","html_url":"https://github.com/techfort/LokiJS/issues/421#issuecomment-219678007","issue_url":"https://api.github.com/repos/techfort/LokiJS/issues/421","id":219678007,"user":{"login":"solisoft","id":6237,"avatar_url":"https://avatars.githubusercontent.com/u/6237?v=3","gravatar_id":"","url":"https://api.github.com/users/solisoft","html_url":"https://github.com/solisoft","followers_url":"https://api.github.com/users/solisoft/followers","following_url":"https://api.github.com/users/solisoft/following{/other_user}","gists_url":"https://api.github.com/users/solisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/solisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solisoft/subscriptions","organizations_url":"https://api.github.com/users/solisoft/orgs","repos_url":"https://api.github.com/users/solisoft/repos","events_url":"https://api.github.com/users/solisoft/events{/privacy}","received_events_url":"https://api.github.com/users/solisoft/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T10:23:19Z","updated_at":"2016-05-17T10:23:19Z","body":"I save file on loki.json (on disk)"}}