{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/4540","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/4540/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/4540/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/4540/events","html_url":"https://github.com/Automattic/mongoose/issues/4540","id":177747786,"node_id":"MDU6SXNzdWUxNzc3NDc3ODY=","number":4540,"title":"_markModified is not a function","user":{"login":"ignasg","id":12294040,"node_id":"MDQ6VXNlcjEyMjk0MDQw","avatar_url":"https://avatars0.githubusercontent.com/u/12294040?v=4","gravatar_id":"","url":"https://api.github.com/users/ignasg","html_url":"https://github.com/ignasg","followers_url":"https://api.github.com/users/ignasg/followers","following_url":"https://api.github.com/users/ignasg/following{/other_user}","gists_url":"https://api.github.com/users/ignasg/gists{/gist_id}","starred_url":"https://api.github.com/users/ignasg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignasg/subscriptions","organizations_url":"https://api.github.com/users/ignasg/orgs","repos_url":"https://api.github.com/users/ignasg/repos","events_url":"https://api.github.com/users/ignasg/events{/privacy}","received_events_url":"https://api.github.com/users/ignasg/received_events","type":"User","site_admin":false},"labels":[{"id":17931294,"node_id":"MDU6TGFiZWwxNzkzMTI5NA==","url":"https://api.github.com/repos/Automattic/mongoose/labels/priority","name":"priority","color":"02e10c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/mongoose/milestones/123","html_url":"https://github.com/Automattic/mongoose/milestone/123","labels_url":"https://api.github.com/repos/Automattic/mongoose/milestones/123/labels","id":1941282,"node_id":"MDk6TWlsZXN0b25lMTk0MTI4Mg==","number":123,"title":"4.6.2","description":"","creator":{"login":"vkarpov15","id":1620265,"node_id":"MDQ6VXNlcjE2MjAyNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1620265?v=4","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},"open_issues":0,"closed_issues":10,"state":"closed","created_at":"2016-08-14T22:22:02Z","updated_at":"2016-10-01T02:29:49Z","due_on":"2016-09-27T07:00:00Z","closed_at":"2016-10-01T02:29:49Z"},"comments":11,"created_at":"2016-09-19T10:12:22Z","updated_at":"2018-11-13T23:01:13Z","closed_at":"2016-10-01T02:28:06Z","author_association":"NONE","body":"Was getting the following error after upgrading to latest mongoose:\n\n```\n\\node_modules\\mongoose\\lib\\types\\embedded.js:68\n    this.__parentArray._markModified();\n                       ^\nTypeError: undefined is not a function\n    at EmbeddedDocument.markModified (\\node_modules\\mongoose\\lib\\types\\embedded.js:68:24)\n    at SchemaArray.cast (\\node_modules\\mongoose\\lib\\schema\\array.js:180:9)\n    at SchemaArray.SchemaType.getDefault (\\node_modules\\mongoose\\lib\\schematype.js:587:23)\n    at EmbeddedDocument.Document.$__buildDoc (\\node_modules\\mongoose\\lib\\document.js:243:22)\n    at EmbeddedDocument.Document (\\node_modules\\mongoose\\lib\\document.js:61:20)\n    at new EmbeddedDocument (\\node_modules\\mongoose\\lib\\types\\embedded.js:30:12)\n    at EmbeddedDocument (\\node_modules\\mongoose\\lib\\schema\\documentarray.js:27:17)\n    at DocumentArray.SchemaArray (\\node_modules\\mongoose\\lib\\schema\\array.js:61:21)\n    at new DocumentArray (\\node_modules\\mongoose\\lib\\schema\\documentarray.js:46:13)\n    at Function.Schema.interpretAsType (\\node_modules\\mongoose\\lib\\schema.js:582:14)\n    at Schema.path (\\node_modules\\mongoose\\lib\\schema.js:527:29)\n    at Schema.add (\\node_modules\\mongoose\\lib\\schema.js:411:12)\n    at new Schema (\\node_modules\\mongoose\\lib\\schema.js:98:10)\n    at Object.<anonymous> (\\modules\\project\\server\\models\\project.server.model.js:71:21)\n    at Module._compile (module.js:460:26)\n    at Object.Module._extensions..js (module.js:478:10)\n    at Module.load (module.js:355:32)\n    at Function.Module._load (module.js:310:12)\n    at Module.require (module.js:365:17)\n    at require (module.js:384:17)\n    at \\config\\lib\\mongoose.js:15:5\n    at Array.forEach (native)\n```\n\nChanging \n\n```\nEmbeddedDocument.prototype.markModified = function(path) {\n  this.$__.activePaths.modify(path);\n  if (!this.__parentArray) {\n    return;\n  }\n```\n\nto\n\n```\nEmbeddedDocument.prototype.markModified = function(path) {\n  this.$__.activePaths.modify(path);\n  if (!this.__parentArray || !this.__parentArray._markModified) {\n    return;\n  }\n```\n\non node_modules\\mongoose\\lib\\types\\embedded.js\nseems to do the trick\n"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/438471426","html_url":"https://github.com/Automattic/mongoose/issues/4540#issuecomment-438471426","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/4540","id":438471426,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQ3MTQyNg==","user":{"login":"ashishdommety","id":21207555,"node_id":"MDQ6VXNlcjIxMjA3NTU1","avatar_url":"https://avatars3.githubusercontent.com/u/21207555?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishdommety","html_url":"https://github.com/ashishdommety","followers_url":"https://api.github.com/users/ashishdommety/followers","following_url":"https://api.github.com/users/ashishdommety/following{/other_user}","gists_url":"https://api.github.com/users/ashishdommety/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishdommety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishdommety/subscriptions","organizations_url":"https://api.github.com/users/ashishdommety/orgs","repos_url":"https://api.github.com/users/ashishdommety/repos","events_url":"https://api.github.com/users/ashishdommety/events{/privacy}","received_events_url":"https://api.github.com/users/ashishdommety/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T23:01:13Z","updated_at":"2018-11-13T23:01:13Z","author_association":"NONE","body":"Was this pulled into the latest mongoose? I still seem to be getting this issue\r\n"}}
{"actor":{"display_login":"ashishdommety"}}