Skip to content

EdgarBarrantes/supabase-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supabase utilities for consuming data

Monorepo that includes several packages related to interactions (mainly fetching data for now) with supabase.

Supabase SWR

Allows using SWR with simple supabase queries.

Examples

Instalation

npm i @edgarbarrantes/supabase-swr

Supabase fetcher

Allows fetching supabase data from the serverside getting the token from the api call. Useful for NextJS getServerSideProps.

Examples

Installation

npm i @edgarbarrantes/supabase-fetcher

Supabase fetcher helpers

Includes a fetcher function and helpers. Used by the other packages, might be useful if you want to build something with it, not recomended to be used inside a project.

Examples

Instalation

npm i @edgarbarrantes/supabase-fetcher-helpers

Notes

The select parameter can receive either the column's name, or the table there is a relationship with, for example: chains(namespace,reference,name), where chains in the table the current table has a relationship with.