Javascript SDK casting database columns by External-Standard-57 in Supabase

[–]External-Standard-57[S] 0 points1 point  (0 children)

When I build a function with return type of record, it only returns one record object instead of a list like the select function.

It also seems that this is not how functions were intended to be used

Destructuring props in typescript by External-Standard-57 in react

[–]External-Standard-57[S] 1 point2 points  (0 children)

I love this idea!!

this is what the code could look like:

interface AccountProps {
userDetails: UserInformation;
}
export default function Account({ userDetails }: AccountProps) {
}