I have not found any documentation on sqlalchemy to create json_agg
, json_build_object
and json_build_array
. Should we need to write query as sql for these?
Asked
Active
Viewed 71 times
1

PaxPrz
- 1,778
- 1
- 13
- 29
-
1These are functions, so the are accessed like any other database function in sqlalchemy: `sqlalchemy.func.json_agg`. – snakecharmerb Jan 14 '21 at 08:17