{"action":"created","issue":{"url":"https://api.github.com/repos/MassD/mongo/issues/17","labels_url":"https://api.github.com/repos/MassD/mongo/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/MassD/mongo/issues/17/comments","events_url":"https://api.github.com/repos/MassD/mongo/issues/17/events","html_url":"https://github.com/MassD/mongo/issues/17","id":56975816,"number":17,"title":"count doesn't work ?","user":{"login":"Engil","id":146049,"avatar_url":"https://avatars.githubusercontent.com/u/146049?v=3","gravatar_id":"","url":"https://api.github.com/users/Engil","html_url":"https://github.com/Engil","followers_url":"https://api.github.com/users/Engil/followers","following_url":"https://api.github.com/users/Engil/following{/other_user}","gists_url":"https://api.github.com/users/Engil/gists{/gist_id}","starred_url":"https://api.github.com/users/Engil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engil/subscriptions","organizations_url":"https://api.github.com/users/Engil/orgs","repos_url":"https://api.github.com/users/Engil/repos","events_url":"https://api.github.com/users/Engil/events{/privacy}","received_events_url":"https://api.github.com/users/Engil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-09T00:20:31Z","updated_at":"2015-02-10T13:34:08Z","closed_at":null,"body":"Hi,\r\nI was playing around with Mongo.ml, and when I tried to use count (to count the elements in a collection),  an exception was raised and I don't understand why.\r\nMaybe I did something wrong ?\r\nHere is a sample session using utop:\r\n```\r\n─( 23:19:42 )─< command 2 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─\r\nutop # #require \"mongo\";;\r\n─( 23:19:50 )─< command 3 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─\r\nutop # let m = Mongo.create_local_default \"lamaurbain\" \"users\";;\r\nval m : Mongo.t = <abstr>                                                                                                                     \r\n─( 23:19:57 )─< command 4 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─\r\nutop # Mongo.count m;;\r\nException: Not_found.                                                                                                                         \r\n─( 23:19:58 )─< command 5 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─\r\nutop #                                                                                                                                        \r\nkokoro:cumulus/src mongo lamaurbain                                                                                                 as engil  \r\nMongoDB shell version: 2.6.1                                                                                                                  \r\nconnecting to: lamaurbain                                                                                                                     \r\n> db.users.count()                                                                                                                            \r\n7                                                                                                                                             \r\n>\r\n```\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/MassD/mongo/issues/comments/73699270","html_url":"https://github.com/MassD/mongo/issues/17#issuecomment-73699270","issue_url":"https://api.github.com/repos/MassD/mongo/issues/17","id":73699270,"user":{"login":"Engil","id":146049,"avatar_url":"https://avatars.githubusercontent.com/u/146049?v=3","gravatar_id":"","url":"https://api.github.com/users/Engil","html_url":"https://github.com/Engil","followers_url":"https://api.github.com/users/Engil/followers","following_url":"https://api.github.com/users/Engil/following{/other_user}","gists_url":"https://api.github.com/users/Engil/gists{/gist_id}","starred_url":"https://api.github.com/users/Engil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engil/subscriptions","organizations_url":"https://api.github.com/users/Engil/orgs","repos_url":"https://api.github.com/users/Engil/repos","events_url":"https://api.github.com/users/Engil/events{/privacy}","received_events_url":"https://api.github.com/users/Engil/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T13:34:08Z","updated_at":"2015-02-10T13:34:08Z","body":"It should be okay, but I haven't tested it on MongoDB < 2.6.1. I don't think it breaks anything though."}}