This is what I mean
select "parent.child" as grp, count(*) from document group by grp
select parent.child, count(*) from document group by parent.child
There is a problem with grouping field aliases. BTW, Turn on "Menu->Options->VerboseShell" to view the generated mongoshell script
Replies have been locked on this page!