I\'m looking for query to always return the JSON representation from PostgreSQL statement, even if there\'s no returning *. Here\'s an example:
returning *
WITH
Use returning to get results of insert statement:
returning
with result as ( insert into users("name", age) values('drew', 42) returning * ) select row_to_json(row) from result as row;