{"action":"created","issue":{"url":"https://api.github.com/repos/danpaz/bodybuilder/issues/46","repository_url":"https://api.github.com/repos/danpaz/bodybuilder","labels_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/46/comments","events_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/46/events","html_url":"https://github.com/danpaz/bodybuilder/issues/46","id":172157046,"number":46,"title":"Help with deferred aggregation addition","user":{"login":"davecranwell","id":352835,"avatar_url":"https://avatars.githubusercontent.com/u/352835?v=3","gravatar_id":"","url":"https://api.github.com/users/davecranwell","html_url":"https://github.com/davecranwell","followers_url":"https://api.github.com/users/davecranwell/followers","following_url":"https://api.github.com/users/davecranwell/following{/other_user}","gists_url":"https://api.github.com/users/davecranwell/gists{/gist_id}","starred_url":"https://api.github.com/users/davecranwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecranwell/subscriptions","organizations_url":"https://api.github.com/users/davecranwell/orgs","repos_url":"https://api.github.com/users/davecranwell/repos","events_url":"https://api.github.com/users/davecranwell/events{/privacy}","received_events_url":"https://api.github.com/users/davecranwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T15:26:05Z","updated_at":"2016-08-25T04:18:42Z","closed_at":null,"body":"I've got a problem I'm hoping you can help with. See: http://jsbin.com/bagarujomo/edit?html,js,output\r\n\r\nEssentially I have two arrays of items which are _not_ known at runtime (unlike this contrived example) and I want items in the second array to be added as sub-aggregates of particular items in the first array. \r\n\r\nMy JS around apply(), call(), partials, currying etc is rather shakey and I'm sure they're the solution here, but I was hoping you might know a quick answer to this having no doubt addressed this yourself.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/danpaz/bodybuilder/issues/comments/242277327","html_url":"https://github.com/danpaz/bodybuilder/issues/46#issuecomment-242277327","issue_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/46","id":242277327,"user":{"login":"danpaz","id":5665333,"avatar_url":"https://avatars.githubusercontent.com/u/5665333?v=3","gravatar_id":"","url":"https://api.github.com/users/danpaz","html_url":"https://github.com/danpaz","followers_url":"https://api.github.com/users/danpaz/followers","following_url":"https://api.github.com/users/danpaz/following{/other_user}","gists_url":"https://api.github.com/users/danpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/danpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpaz/subscriptions","organizations_url":"https://api.github.com/users/danpaz/orgs","repos_url":"https://api.github.com/users/danpaz/repos","events_url":"https://api.github.com/users/danpaz/events{/privacy}","received_events_url":"https://api.github.com/users/danpaz/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T04:18:42Z","updated_at":"2016-08-25T04:18:42Z","body":"@davecranwell I'm not sure this is currently possible because [this code](https://github.com/danpaz/bodybuilder/blob/master/src/aggregations/aggregation-builder.js#L39) evaluates the nested aggregation immediately, and looks for the `_aggs` property to set on the builder. But I haven't taken too close of a look so maybe @nfantone (the original author of nested aggregations) has more thoughts on this?"}}
{"actor":{"display_login":"danpaz"}}