@rtorcato/supabase-common / unwrapMaybe
Function: unwrapMaybe()
unwrapMaybe<
T>(result):T|null
Defined in: unwrap.ts:47
Like unwrap, but returns null for a missing row instead of
throwing. Still throws on an actual error. Use for "find or nothing" reads.
const maybe = unwrapMaybe(await supabase.from('users').select().maybeSingle())
Type Parameters
T
T
Parameters
result
Returns
T | null