Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I also wrote this library, which makes things even more node/deno like: https://github.com/burggraf/supascript
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2' // Create client for interacting with your database const supabase = createClient( 'https://xyzcompany.supabase.co', 'SERVICE ROLE KEY' <<<----- the important part ) serve(async (req) => { // do validation here if(invalid) { return errorResponse } if(valid) { supabase.from('myTable').update({ name: 'My new Name' }) return successResponse } })
You can write vanilla JS in *.ts files just fine. You don't need to use types. If you check this: https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts