Files
supabase/web/docs/library/examples/common.js
T
Angelico 0e28187f64 Starting Documentation for New Filters
- For all new filters introduced in postgrest-js 0.12.0
- Started with .select() first, the rest should be quicker from here.
- Took the liberty as well to group common snippets as well to minimise surface area.
- Surface area of examples could be further reduced.
2020-04-08 19:10:04 +08:00

18 lines
321 B
JavaScript

/**
* Common snippets shared across all examples
*/
export const importJs = `
import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')
`
export const errorJs = `
} catch (error) {
console.log('Error: ', error)
}
}
`.trim()