Skip to content
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 from #202

Closed
marcusraty opened this issue Dec 18, 2023 · 1 comment
Closed

Select from #202

marcusraty opened this issue Dec 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@marcusraty
Copy link

Bug report

Describe the bug

https://supabase.com/docs/guides/storage/security/access-control

According to the storage guide there is a storage.objects table. I expected to be able to fetch data from it (with appropriate RLS), however I am getting the error:

PostgrestError(details: nil, hint: nil, code: Optional("42P01"), message: "relation \"public.storage.objects\" does not exist")

To Reproduce

I am using the following code:

            let result = try await supabaseClient.database
                .from("storage.objects")
                .select()
                .eq("name", value: "path_that_exists")
                .execute()

Expected behavior

Should we be able to query storage.objects? I took the idea from here: supabase/storage#266

@marcusraty marcusraty added the bug Something isn't working label Dec 18, 2023
@marcusraty
Copy link
Author

I misunderstood what was suggested in here: supabase/storage#266

I was able to get this working but making a postgres function and calling that via .rpc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant