supabase / postgrest-dart

Dart client for PostgREST
https://supabase.com
MIT License
136 stars 38 forks source link

fix: maybeSingle #84

Closed Vinzent03 closed 2 years ago

Vinzent03 commented 2 years ago

There were multiple problems:

  1. Parsing of the error failed, because hint was missing
  2. data was not null, but an empty string?
  3. On null it returned a PostgrestResponse instead of data directly, because count was not null.

fix supabase-community/supabase-flutter/issues/195

Vinzent03 commented 2 years ago

I only have flutter channel beta and stable installed. Looks like the formatter changes in the latest dart release.

Vinzent03 commented 2 years ago

@dshukertjr I will fix supabase-community/supabase-flutter/issues/201 today as well, so please wait with release.

dshukertjr commented 2 years ago

Cool, merging this one then!