{"action":"created","issue":{"url":"https://api.github.com/repos/mongoid/moped/issues/283","labels_url":"https://api.github.com/repos/mongoid/moped/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/mongoid/moped/issues/283/comments","events_url":"https://api.github.com/repos/mongoid/moped/issues/283/events","html_url":"https://github.com/mongoid/moped/issues/283","id":35245959,"number":283,"title":"Collection#aggregate does not support options","user":{"login":"glampr","id":470610,"avatar_url":"https://avatars.githubusercontent.com/u/470610?v=3","gravatar_id":"","url":"https://api.github.com/users/glampr","html_url":"https://github.com/glampr","followers_url":"https://api.github.com/users/glampr/followers","following_url":"https://api.github.com/users/glampr/following{/other_user}","gists_url":"https://api.github.com/users/glampr/gists{/gist_id}","starred_url":"https://api.github.com/users/glampr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glampr/subscriptions","organizations_url":"https://api.github.com/users/glampr/orgs","repos_url":"https://api.github.com/users/glampr/repos","events_url":"https://api.github.com/users/glampr/events{/privacy}","received_events_url":"https://api.github.com/users/glampr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-06-08T20:25:40Z","updated_at":"2015-07-03T17:01:08Z","closed_at":null,"body":"I have found no way to pass options to the ```Collection#aggregate``` method as explained here: http://docs.mongodb.org/manual/reference/method/db.collection.aggregate/ for example to allowDiskUse for external sort operations.\r\nMaybe a patch like this should be considered?\r\nhttp://stackoverflow.com/questions/23302047/adding-allowdiskuse-parameter-to-db-collection-aggregate-query-using-mongoid"},"comment":{"url":"https://api.github.com/repos/mongoid/moped/issues/comments/118392771","html_url":"https://github.com/mongoid/moped/issues/283#issuecomment-118392771","issue_url":"https://api.github.com/repos/mongoid/moped/issues/283","id":118392771,"user":{"login":"jasoares","id":1004109,"avatar_url":"https://avatars.githubusercontent.com/u/1004109?v=3","gravatar_id":"","url":"https://api.github.com/users/jasoares","html_url":"https://github.com/jasoares","followers_url":"https://api.github.com/users/jasoares/followers","following_url":"https://api.github.com/users/jasoares/following{/other_user}","gists_url":"https://api.github.com/users/jasoares/gists{/gist_id}","starred_url":"https://api.github.com/users/jasoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasoares/subscriptions","organizations_url":"https://api.github.com/users/jasoares/orgs","repos_url":"https://api.github.com/users/jasoares/repos","events_url":"https://api.github.com/users/jasoares/events{/privacy}","received_events_url":"https://api.github.com/users/jasoares/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T17:01:08Z","updated_at":"2015-07-03T17:01:08Z","body":"+1"}}