Getting closer: This query
{
q(func:type("Office")) {
officename: Office.bezeichnung
Office.jobs @groupby(emp: Job.employees)
}
}
returns (among others):
{
"data": {
"q": [
{
"officename": "My Company",
"Office.jobs": [
{
"@groupby": [
{
"emp": "0x1b"
},
{
"emp": "0x1c"
},
{
"emp": "0x18"
},
{
"emp": "0x1d"
}
]
}
]
},
Now what I want to get is the count of the @groupby
Maxing out to get only the office with the highest count on this groupby