Skip to content

Correct Way to Fetch Data from Multiple Schemas from Supabase? #5094

Discussion options

You must be logged in to vote

Hey @horizon-phoenix-fly, as an addition to the @BatuhanW's answer, I want to write a quick guide on how to achieve using multiple schemas in refine's supabase integration after swizzling the data provider.

By using the swizzle command, you'll have the implementation of the @refinedev/supabase's dataProvider and liveProvider copied in your project. Hoping this is clear so far.

After that we'll need to add a small feature that allows you to pick schemas instead of passing it once when creating the supabase client.

You'll see that the data provider consists of couple of methods to achieve every crud operation. If this is not clear, I'm strongly advising you to check out the documents @BatuhanW

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@horizon-phoenix-fly
Comment options

@BatuhanW
Comment options

@horizon-phoenix-fly
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by omeraplak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants