{"action":"created","issue":{"url":"https://api.github.com/repos/SoftInstigate/restheart/issues/73","labels_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/73/comments","events_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/73/events","html_url":"https://github.com/SoftInstigate/restheart/issues/73","id":122044751,"number":73,"title":"How to use aggrigation..?","user":{"login":"singhvikram704","id":16223375,"avatar_url":"https://avatars.githubusercontent.com/u/16223375?v=3","gravatar_id":"","url":"https://api.github.com/users/singhvikram704","html_url":"https://github.com/singhvikram704","followers_url":"https://api.github.com/users/singhvikram704/followers","following_url":"https://api.github.com/users/singhvikram704/following{/other_user}","gists_url":"https://api.github.com/users/singhvikram704/gists{/gist_id}","starred_url":"https://api.github.com/users/singhvikram704/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhvikram704/subscriptions","organizations_url":"https://api.github.com/users/singhvikram704/orgs","repos_url":"https://api.github.com/users/singhvikram704/repos","events_url":"https://api.github.com/users/singhvikram704/events{/privacy}","received_events_url":"https://api.github.com/users/singhvikram704/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-14T13:39:56Z","updated_at":"2015-12-15T09:45:24Z","closed_at":"2015-12-14T14:42:45Z","body":"I have collection:\r\n\r\n{\r\n    \"_id\" : ObjectId(\"56696db1429cbd907085cb08\"),\r\n    \"attributes\" : [ \r\n        {\r\n            \"_id\" : \"5666cec9e4b0834319eac761\",\r\n            \"name\" : \"Quantity\",\r\n            \"value\" : \"1kg\"\r\n        },\r\n    \"status\" : \"Active\",\r\n    \"type\" : \"single\"\r\n}\r\n\r\nHow i use aggregation in restheart like query: \r\n\r\ndb.products.aggregate({$group   : { _id : \"$Quantity\"}})\r\n\r\nNeed help regarding this...\r\n\r\nThanx in advance"},"comment":{"url":"https://api.github.com/repos/SoftInstigate/restheart/issues/comments/164704391","html_url":"https://github.com/SoftInstigate/restheart/issues/73#issuecomment-164704391","issue_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/73","id":164704391,"user":{"login":"hemraj-sharma","id":12558130,"avatar_url":"https://avatars.githubusercontent.com/u/12558130?v=3","gravatar_id":"","url":"https://api.github.com/users/hemraj-sharma","html_url":"https://github.com/hemraj-sharma","followers_url":"https://api.github.com/users/hemraj-sharma/followers","following_url":"https://api.github.com/users/hemraj-sharma/following{/other_user}","gists_url":"https://api.github.com/users/hemraj-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/hemraj-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemraj-sharma/subscriptions","organizations_url":"https://api.github.com/users/hemraj-sharma/orgs","repos_url":"https://api.github.com/users/hemraj-sharma/repos","events_url":"https://api.github.com/users/hemraj-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/hemraj-sharma/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T09:45:24Z","updated_at":"2015-12-15T09:45:24Z","body":"editted above content:\r\n---------->>>>>>>>>>\r\nas will be used as======>\r\n\r\n[ {\"_$unwind\": \"$abc_Ids\"},{ \"_$match\" : { \"abc_Ids.abcId\"\r\n: {\"_$var\": \"<variable_name>\"}\r\n}},...]\r\nin the aggrs variable.\r\n<<<<<<<------------"}}