{"action":"created","issue":{"url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/2","labels_url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/2/comments","events_url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/2/events","html_url":"https://github.com/TheRoSS/mongodb-autoincrement/issues/2","id":57926423,"number":2,"title":"Field is not getting saved in record unless it is _id","user":{"login":"iammoen","id":3587967,"avatar_url":"https://avatars.githubusercontent.com/u/3587967?v=3","gravatar_id":"","url":"https://api.github.com/users/iammoen","html_url":"https://github.com/iammoen","followers_url":"https://api.github.com/users/iammoen/followers","following_url":"https://api.github.com/users/iammoen/following{/other_user}","gists_url":"https://api.github.com/users/iammoen/gists{/gist_id}","starred_url":"https://api.github.com/users/iammoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iammoen/subscriptions","organizations_url":"https://api.github.com/users/iammoen/orgs","repos_url":"https://api.github.com/users/iammoen/repos","events_url":"https://api.github.com/users/iammoen/events{/privacy}","received_events_url":"https://api.github.com/users/iammoen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-17T13:53:25Z","updated_at":"2015-12-21T23:12:15Z","closed_at":null,"body":"I believe this is due to line 71 in mongodb-autoincrement.js where the line reads:\r\ndoc._id = result;\r\n\r\nIt should be something more like doc.fieldName = result I believe.\r\n\r\nI haven't ever reported something so sorry if this isn't the proper way to do it!"},"comment":{"url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/comments/166453361","html_url":"https://github.com/TheRoSS/mongodb-autoincrement/issues/2#issuecomment-166453361","issue_url":"https://api.github.com/repos/TheRoSS/mongodb-autoincrement/issues/2","id":166453361,"user":{"login":"LeandroFavero","id":10135969,"avatar_url":"https://avatars.githubusercontent.com/u/10135969?v=3","gravatar_id":"","url":"https://api.github.com/users/LeandroFavero","html_url":"https://github.com/LeandroFavero","followers_url":"https://api.github.com/users/LeandroFavero/followers","following_url":"https://api.github.com/users/LeandroFavero/following{/other_user}","gists_url":"https://api.github.com/users/LeandroFavero/gists{/gist_id}","starred_url":"https://api.github.com/users/LeandroFavero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeandroFavero/subscriptions","organizations_url":"https://api.github.com/users/LeandroFavero/orgs","repos_url":"https://api.github.com/users/LeandroFavero/repos","events_url":"https://api.github.com/users/LeandroFavero/events{/privacy}","received_events_url":"https://api.github.com/users/LeandroFavero/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T23:12:15Z","updated_at":"2015-12-21T23:12:15Z","body":"I got the same problem. Fix changing line 125 like natan88 said."}}