Replies: 1 comment
-
Hey @ramonck . Yes you can use const { createClient } = require('@supabase/supabase-js')
const supabase = createClient('URL', 'ANON_KEY')
const getData = async () => {
// keyword ^^^^^^^ "async"
const { data, error } = await supabase.from('table').select()
return data
} If you use an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was wondering if it's possible to use require('@supabase/supabase-js') instead of import and how would that work?
I tried using just plain require and it complained here about:
Beta Was this translation helpful? Give feedback.
All reactions