{
"group": "Grouping",
"entries": [
{
"name": "Records by ward",
"sentence": "Group readable records by ward, with counts and members in input order.",
"query": "collection(${collection}) | group_by(.${field})",
"change": "Change ${collection} to the quoted collection name and ${field} to the top-level grouping field. Missing fields group under null; groups use jq value order and must fit one complete scan and page.",
"defaults": {
"collection": "\"patients\"",
"field": "ward"
}
}
]
}