Worth branching on error.details too, since PostgREST says how many rows it saw: "The result contains 0 rows" points at a missing row or an RLS policy hiding it, while 2 or more rows means a missing unique constraint, and those are different fixes. Also maybeSingle() is the better call when zero rows is a normal outcome, like a profile lookup before the user has saved anything.