Yup, I forgot to regenerate the types, duhhh π
!
All of my complex types now work! Thanks you!
I am having a problem with counting though:
CREATE OR REPLACE FUNCTION public.user_count(comments)
RETURNS bigint
LANGUAGE sql
SET search_path = ''
AS $$
SELECT COUNT(*)
FROM public.comments WHERE comments.user_id = auth.uid();
$$;
This returns number | null instead of just number... that, I think, is only thing left π€
You can view my repo:
https://github.com/jdgamble555/supabase-types
J
Originally posted by @jdgamble555 in #1641