Skip to content

Non nullable computed field not properly introspectedΒ #1818

@avallete

Description

@avallete

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions