{"action":"created","issue":{"url":"https://api.github.com/repos/vdemedes/mongorito/issues/32","labels_url":"https://api.github.com/repos/vdemedes/mongorito/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/vdemedes/mongorito/issues/32/comments","events_url":"https://api.github.com/repos/vdemedes/mongorito/issues/32/events","html_url":"https://github.com/vdemedes/mongorito/issues/32","id":66139256,"number":32,"title":"Error occured while fetch all records","user":{"login":"asci","id":778908,"avatar_url":"https://avatars.githubusercontent.com/u/778908?v=3","gravatar_id":"","url":"https://api.github.com/users/asci","html_url":"https://github.com/asci","followers_url":"https://api.github.com/users/asci/followers","following_url":"https://api.github.com/users/asci/following{/other_user}","gists_url":"https://api.github.com/users/asci/gists{/gist_id}","starred_url":"https://api.github.com/users/asci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asci/subscriptions","organizations_url":"https://api.github.com/users/asci/orgs","repos_url":"https://api.github.com/users/asci/repos","events_url":"https://api.github.com/users/asci/events{/privacy}","received_events_url":"https://api.github.com/users/asci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-03T12:38:11Z","updated_at":"2015-04-03T13:03:10Z","closed_at":null,"body":"on start I get this error:\r\n```\r\n[Error: Module did not self-register.]\r\njs-bson: Failed to load c++ bson extension, using pure JS version\r\n```\r\n\r\nand when I try to `yield SomeModel.all();`\r\nthis error throws:\r\n\r\n```\r\nTypeError: Cannot read property 'find' of undefined\r\n      at Query.find (/Users/artem/Projects/elastic/metagen/node_modules/mongorito/lib/query.js:127:37)\r\n      at GeneratorFunctionPrototype.next (native)\r\n```\r\n\r\nMy model looks like\r\n\r\n```\r\nvar Mongorito = require('mongorito');\r\nvar Model = Mongorito.Model;\r\nMongorito.connect('mongodb://localhost:27017/mydb');\r\n\r\nvar Api = Model.extend({\r\n    collection: function () {\r\n        return 'apis';\r\n    }\r\n});\r\n\r\nmodule.exports = Api;\r\n```\r\n\r\nI'm using Koajs and iojs"},"comment":{"url":"https://api.github.com/repos/vdemedes/mongorito/issues/comments/89281952","html_url":"https://github.com/vdemedes/mongorito/issues/32#issuecomment-89281952","issue_url":"https://api.github.com/repos/vdemedes/mongorito/issues/32","id":89281952,"user":{"login":"vdemedes","id":697676,"avatar_url":"https://avatars.githubusercontent.com/u/697676?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemedes","html_url":"https://github.com/vdemedes","followers_url":"https://api.github.com/users/vdemedes/followers","following_url":"https://api.github.com/users/vdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemedes/subscriptions","organizations_url":"https://api.github.com/users/vdemedes/orgs","repos_url":"https://api.github.com/users/vdemedes/repos","events_url":"https://api.github.com/users/vdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vdemedes/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T13:03:10Z","updated_at":"2015-04-03T13:03:10Z","body":"Run `npm rebuild` to fix the following error:\r\n\r\n```\r\n[Error: Module did not self-register.]\r\njs-bson: Failed to load c++ bson extension, using pure JS version\r\n```"}}