{"action":"closed","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1252","repository_url":"https://api.github.com/repos/MongoEngine/mongoengine","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1252/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1252/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/1252","id":140490928,"number":1252,"title":"What is the right way to use \"aggregate\" in MongoEngine?","user":{"login":"kevin0571","id":1491282,"avatar_url":"https://avatars.githubusercontent.com/u/1491282?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin0571","html_url":"https://github.com/kevin0571","followers_url":"https://api.github.com/users/kevin0571/followers","following_url":"https://api.github.com/users/kevin0571/following{/other_user}","gists_url":"https://api.github.com/users/kevin0571/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin0571/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin0571/subscriptions","organizations_url":"https://api.github.com/users/kevin0571/orgs","repos_url":"https://api.github.com/users/kevin0571/repos","events_url":"https://api.github.com/users/kevin0571/events{/privacy}","received_events_url":"https://api.github.com/users/kevin0571/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MongoEngine/mongoengine/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-13T14:43:23Z","updated_at":"2016-05-21T02:34:16Z","closed_at":"2016-05-21T02:34:16Z","body":"As \"distance\" is the default sort order for $near, and my use case requires \"distance\" to be the secondary sort order, I have to use aggregation pipeline with $geoNear.\r\nI did check out MongoEngine doc for aggregation, but seems it's not clear enough for it.\r\n\r\nSo my question is: what is the right way to use \"aggregate\" in MongoEngine?"}}
{"actor":{"display_login":"kevin0571"}}