supabase-js icon indicating copy to clipboard operation
supabase-js copied to clipboard

Non nullable computed field not properly introspected

Open avallete opened this issue 4 months ago • 1 comments

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

avallete avatar Oct 30 '25 09:10 avallete