How to filter null values from json_arrayagg
Hey sry if this is a stupid question, I am still kinda new to more complex sql queries.
The problem here is that
pictures
returns an array
of objects that have all properties null. As far as I know this is a correct behaviour for the left join.
I just wanted to know how I could filter the null values in a good way.
3 Replies
I actually found a way to filter them, but I am not sure if this is the best way
It would be really helpful if someone can clarify if this is the right approach
Yes, that's one way to do it
Something that might help is seeing how a findMany query from the RQB is generated
sql