
Supabase Quick Docs
I keep a small note when learning a new tool. Not a full guide. Not polished documentation. Just the syntax I actually use . After a few projects with Supabase, I noticed the same pattern. I kept opening the docs, searching for the same things: How to insert a row How to query data How to update something How to call an RPC So I wrote a small “quick syntax sheet”. This is the version I wish I had when starting. Supabase is simple once you learn the core pattern. Almost everything follows this shape: supabase .from("table") .operation(...) If you remember that, the rest becomes predictable. Setup Create a client first. import { createClient } from " @supabase/supabase-js " const supabase = createClient ( process . env . NEXT_PUBLIC_SUPABASE_URL , process . env . NEXT_PUBLIC_SUPABASE_ANON_KEY ) That’s it. Now every database call starts with supabase . Select (Read Data) The most common query. const { data , error } = await supabase . from ( " posts " ) . select ( " * " ) You’ll probably
Continue reading on Dev.to JavaScript
Opens in a new tab




