{"action":"created","issue":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/396","labels_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/396/comments","events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/396/events","html_url":"https://github.com/jenssegers/laravel-mongodb/issues/396","id":54807962,"number":396,"title":"Need help with convert query from Mysql to Mongo","user":{"login":"vanchelo","id":1158281,"avatar_url":"https://avatars.githubusercontent.com/u/1158281?v=3","gravatar_id":"","url":"https://api.github.com/users/vanchelo","html_url":"https://github.com/vanchelo","followers_url":"https://api.github.com/users/vanchelo/followers","following_url":"https://api.github.com/users/vanchelo/following{/other_user}","gists_url":"https://api.github.com/users/vanchelo/gists{/gist_id}","starred_url":"https://api.github.com/users/vanchelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanchelo/subscriptions","organizations_url":"https://api.github.com/users/vanchelo/orgs","repos_url":"https://api.github.com/users/vanchelo/repos","events_url":"https://api.github.com/users/vanchelo/events{/privacy}","received_events_url":"https://api.github.com/users/vanchelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-19T20:21:44Z","updated_at":"2015-02-03T00:55:42Z","closed_at":null,"body":"```php\r\npublic function calculationsCount()\r\n    {\r\n        return $this->calculations()->select([\r\n            DB::raw('count(*) as count'), 'user_id'\r\n        ])->groupBy('user_id');\r\n    }\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/comments/72571485","html_url":"https://github.com/jenssegers/laravel-mongodb/issues/396#issuecomment-72571485","issue_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/396","id":72571485,"user":{"login":"hackel","id":583677,"avatar_url":"https://avatars.githubusercontent.com/u/583677?v=3","gravatar_id":"","url":"https://api.github.com/users/hackel","html_url":"https://github.com/hackel","followers_url":"https://api.github.com/users/hackel/followers","following_url":"https://api.github.com/users/hackel/following{/other_user}","gists_url":"https://api.github.com/users/hackel/gists{/gist_id}","starred_url":"https://api.github.com/users/hackel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackel/subscriptions","organizations_url":"https://api.github.com/users/hackel/orgs","repos_url":"https://api.github.com/users/hackel/repos","events_url":"https://api.github.com/users/hackel/events{/privacy}","received_events_url":"https://api.github.com/users/hackel/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T00:55:42Z","updated_at":"2015-02-03T00:55:42Z","body":"@vanchelo This is not a Mongo support forum!"}}