{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/2793","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/2793/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/2793/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/2793/events","html_url":"https://github.com/Automattic/mongoose/issues/2793","id":64310443,"number":2793,"title":"Model.findByIdAndUpdate() default option new false?","user":{"login":"topaxi","id":213788,"avatar_url":"https://avatars.githubusercontent.com/u/213788?v=3","gravatar_id":"","url":"https://api.github.com/users/topaxi","html_url":"https://github.com/topaxi","followers_url":"https://api.github.com/users/topaxi/followers","following_url":"https://api.github.com/users/topaxi/following{/other_user}","gists_url":"https://api.github.com/users/topaxi/gists{/gist_id}","starred_url":"https://api.github.com/users/topaxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topaxi/subscriptions","organizations_url":"https://api.github.com/users/topaxi/orgs","repos_url":"https://api.github.com/users/topaxi/repos","events_url":"https://api.github.com/users/topaxi/events{/privacy}","received_events_url":"https://api.github.com/users/topaxi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T16:17:34Z","updated_at":"2015-03-25T16:50:06Z","closed_at":null,"body":"It seems that the Model.findByIdAndUpdate() options \"new\" defaults to false in mongoose 4.0.0.\r\nAccording to the documentation, it should be true.\r\n\r\nDid the default value change or is this a bug?\r\n\r\nhttp://mongoosejs.com/docs/api.html#model_Model.findByIdAndUpdate"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/86118201","html_url":"https://github.com/Automattic/mongoose/issues/2793#issuecomment-86118201","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/2793","id":86118201,"user":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T16:50:06Z","updated_at":"2015-03-25T16:50:06Z","body":"The fact that the docs are wrong, though, is unfortunate. I will fix that."}}