You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/11-dataApi.md
+86-1Lines changed: 86 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,4 +280,89 @@ Create INDEX is just for example, you have to use your migrator / ORM to create
280
280
281
281
First one covers performance for the first query, second one for the second query.
282
282
If you did not understand how indexes are created: **get sorted tuple of all fields in filters + all fields in sort,
283
-
in order they appear in filters and sort**.
283
+
in order they appear in filters and sort**.
284
+
285
+
## Get aggregated data from database
286
+
The aggregate method allows you to compute statistical summaries over database records instead of returning raw rows. It is useful for building analytics, dashboards, charts, and reporting endpoints.
287
+
288
+
You can combine:
289
+
- filters (to narrow down dataset)
290
+
- aggregates (to compute metrics like count, average, sum, median)
291
+
- grouping (to split results by field or time periods)
0 commit comments