{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/3100","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/3100/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/3100/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/3100/events","html_url":"https://github.com/Automattic/mongoose/issues/3100","id":90698460,"number":3100,"title":"Migrating from 3.x to 4.x, find() can't work well.","user":{"login":"Sean-Wang","id":1193073,"avatar_url":"https://avatars.githubusercontent.com/u/1193073?v=3","gravatar_id":"","url":"https://api.github.com/users/Sean-Wang","html_url":"https://github.com/Sean-Wang","followers_url":"https://api.github.com/users/Sean-Wang/followers","following_url":"https://api.github.com/users/Sean-Wang/following{/other_user}","gists_url":"https://api.github.com/users/Sean-Wang/gists{/gist_id}","starred_url":"https://api.github.com/users/Sean-Wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sean-Wang/subscriptions","organizations_url":"https://api.github.com/users/Sean-Wang/orgs","repos_url":"https://api.github.com/users/Sean-Wang/repos","events_url":"https://api.github.com/users/Sean-Wang/events{/privacy}","received_events_url":"https://api.github.com/users/Sean-Wang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T14:47:17Z","updated_at":"2015-06-24T15:57:16Z","closed_at":null,"body":"We are working on our project with mongoose-rbac (https://github.com/bryandragon/mongoose-rbac). But after migrating mongoose from 3.8.x to 4.0.6, we meet abnormal condition.\r\n\r\nUnder 3.8.x, `rbac.Role.find()` can work corrected. After migrating, this code cannot work anymore.\r\n\r\nPlease give us some suggestion to solve this problem under 4.x.\r\n\r\nNote: `var rbac = require('mongoose-rbac');`"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/114924448","html_url":"https://github.com/Automattic/mongoose/issues/3100#issuecomment-114924448","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/3100","id":114924448,"user":{"login":"Sean-Wang","id":1193073,"avatar_url":"https://avatars.githubusercontent.com/u/1193073?v=3","gravatar_id":"","url":"https://api.github.com/users/Sean-Wang","html_url":"https://github.com/Sean-Wang","followers_url":"https://api.github.com/users/Sean-Wang/followers","following_url":"https://api.github.com/users/Sean-Wang/following{/other_user}","gists_url":"https://api.github.com/users/Sean-Wang/gists{/gist_id}","starred_url":"https://api.github.com/users/Sean-Wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sean-Wang/subscriptions","organizations_url":"https://api.github.com/users/Sean-Wang/orgs","repos_url":"https://api.github.com/users/Sean-Wang/repos","events_url":"https://api.github.com/users/Sean-Wang/events{/privacy}","received_events_url":"https://api.github.com/users/Sean-Wang/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T15:57:16Z","updated_at":"2015-06-24T15:57:16Z","body":"Under 3.8.x\r\n\r\n`rbac.Role.find ({\r\n                    _id: userRoles\r\n                }, function (err, results) {\r\n                    console.log (results)\r\n                });`\r\n\r\ncan output result.\r\n\r\nBut 4.x, no callback."}}