supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
965 stars 129 forks source link

fix maybeSingle w/ throwOnError w/ n > 1 results #433

Open maxkostow opened 1 year ago

maxkostow commented 1 year ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

.maybeSingle()
.throwOnError()

Does not throw when results.length > 1

What is the new behavior?

Throws the error when results.length > 1

Additional context

Related to #424