-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select() does not select all columns by default #507
Comments
Hello, As you've correctly pointed out, there is a discrepancy between the documentation and the actual behavior of the select() method. The documentation states that if no columns are provided, the select() function "defaults to *", which implies that all columns should be selected. I think HEAD request can be useful for users that only check if table exist or not without fetching any data which can slow down the request. |
Hi, thanks for reporting this. Behavior should be aligned between client libs, If you need to use From what I see, this isn't supported as expected. This fix would be a breaking change, tho currently it has the wrong behavior, @silentworks what do you think about this? |
I think we should apply the breaking change since this is a bug fix, the current behavior is a bug. We should probably do a minor release and not a patch release for this though. |
Agreed, I'll push a PR with the fix. |
Bug report
Describe the bug
The docs say the
columns
parameter ofselect()
"defaults to*
." It does not.To Reproduce
supabase.table("t").select("*")
, and get everything int
.supabase.table("t").select("")
, and get everything int
.supabase.table("t").select()
, and get no data.Expected behavior
supabase.table("t").select()
should get everything int
. I understand "defaults to*
" to mean*
is the default argument.The text was updated successfully, but these errors were encountered: