jar
06/12/2022, 6:19 PMmylist jsonb := '[]';
and in loop want to push opjects into it
mylist = mylist || jsonb_build_object(
'id', my_id::uuid,
'myfield', some_text,
);
I think this is actually making the list like jsonb[] type without string around '[]' its like []. Error is operator does not exist: character varying = jsonb
for overall func and I think something like this is issueNeedle
06/12/2022, 6:19 PMjar
06/12/2022, 6:21 PMjar
06/12/2022, 7:51 PMNeedle
06/12/2022, 7:52 PM