"If a new function was created in the database with this name and parameters, try reloading the schema cache.""Could not find the public.user_like_store(store_id, user_id) function or the public.user_like_store function with a single unnamed json or jsonb parameter in the schema cache".NOTIFY pgrst, 'reload schema'.create or replace function user_like_store(user_id uuid, id int)
returns void
as
$func$
update dev_stores_v3
set likes = array_append(likes, user_id)
where store_id = id
$func$
language sql,