Specify that data
object can be null
#9817
Labels
documentation
Improvements or additions to documentation
data
object can be null
#9817
Improve documentation
Link
Typescript Support
Describe the problem
Prefer: return=minimal
is set by default now.Prefer: return=minimal
by default postgrest-js#276Therefore, if
.select()
is not chained, successful requests returnnull
for bothdata
anderror
.Describe the improvement
Current documentation is technically correct - successful requests do return
data
object ofnull
or an array.However, being more explicit would not hurt.
Additional context
The following code will always throw an error for both successful and unsuccessful requests.
Successful responses used to return an
data
array, so the above code was valid inv1
.The text was updated successfully, but these errors were encountered: