I have an array like this:
["f383224c-aa95-40c9-a4e4-fa41747f49c5","c783234c-aa95-40c9-a4e4-fa41747f49c6"]
And I want to select with any but I got an error cannot cast text[] to uuid
SELECT c.name FROM cars c
LEFT JOIN location_orders_cars loc ON loc.car_id = c.id
WHERE loc.user_id = ANY($1::uuid) AND loc.location_orders_id = $2 AND loc.is_back = NULL
LIMIT 10;
$1 = array of UUID above
$2 = 355
what I am doing wrong here ?