maybeSingle method
Retrieves at most one row from the result.
Result must be at most one row or nullable
(e.g. using eq
on a UNIQUE column), otherwise this will result in an error.
Implementation
PostgrestTransformBuilder maybeSingle() {
headers['Accept'] = 'application/vnd.pgrst.object+json';
maybeEmpty = true;
return this;
}