Group all results on a field. Yields one row per unique field value, which has 2 properties: one corresponding to the field being grouped on, and a rows array field which contains all of the pages that matched.
GROUP BY fieldGROUP BY (computed_field) AS name
In order to make working with the rows array easier, Dataview supports field “swizzling”. If you want the field test from every object in the rows array, then rows.test will automatically fetch the test field from every object in rows, yielding a new array. You can then apply aggregation operators like sum() or flat() over the resulting array.