{"action":"created","issue":{"url":"https://api.github.com/repos/getlackey/mongoose-version/issues/1","labels_url":"https://api.github.com/repos/getlackey/mongoose-version/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/getlackey/mongoose-version/issues/1/comments","events_url":"https://api.github.com/repos/getlackey/mongoose-version/issues/1/events","html_url":"https://github.com/getlackey/mongoose-version/issues/1","id":88251115,"number":1,"title":"error when adding your plugin","user":{"login":"kirrg001","id":1160712,"avatar_url":"https://avatars.githubusercontent.com/u/1160712?v=3","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-14T21:26:49Z","updated_at":"2015-06-15T13:47:13Z","closed_at":null,"body":"mongoose version: 4.0.5\r\n\r\n````\r\nTypeError: Undefined type `undefined` at `paths._id`\r\n  Did you try nesting Schemas? You can only nest using refs or arrays.\r\n    at Schema.<anonymous> (/..../node_modules/lackey-mongoose-version/lib/save-collection.js:28:39)\r\n````\r\n\r\nAfter you clone the schema and create a new one, i get an error.\r\nsuggestions?"},"comment":{"url":"https://api.github.com/repos/getlackey/mongoose-version/issues/comments/112076992","html_url":"https://github.com/getlackey/mongoose-version/issues/1#issuecomment-112076992","issue_url":"https://api.github.com/repos/getlackey/mongoose-version/issues/1","id":112076992,"user":{"login":"relvao","id":1629490,"avatar_url":"https://avatars.githubusercontent.com/u/1629490?v=3","gravatar_id":"","url":"https://api.github.com/users/relvao","html_url":"https://github.com/relvao","followers_url":"https://api.github.com/users/relvao/followers","following_url":"https://api.github.com/users/relvao/following{/other_user}","gists_url":"https://api.github.com/users/relvao/gists{/gist_id}","starred_url":"https://api.github.com/users/relvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relvao/subscriptions","organizations_url":"https://api.github.com/users/relvao/orgs","repos_url":"https://api.github.com/users/relvao/repos","events_url":"https://api.github.com/users/relvao/events{/privacy}","received_events_url":"https://api.github.com/users/relvao/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T13:47:13Z","updated_at":"2015-06-15T13:47:13Z","body":"@kirrg001 I can't see the error using mongoose@4.0.5. Can you provide some example code?\r\n\r\nThanks"}}