MDobs
03/22/2022, 2:23 PMTypeError: Do not know how to serialize a BigInt","code":"XX000"
when I run this function:
var users = plv8.execute(
`select * from users`
);
return users;
any ideas?lulzsimp
03/22/2022, 2:49 PMpipeabellos
03/23/2022, 1:11 AMconrad.lin
03/23/2022, 9:14 AManggoran
03/23/2022, 9:32 AMrishav
03/23/2022, 4:34 PMdb
declaration in other parts of the app as well?
import { createClient } from '@supabase/supabase-js'
addEventListener('fetch', (event) => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const db = createClient(
'YOUR_SUPABASE_URL', // Replace with your project's URL
'YOUR_SUPABASE_KEY', // Replace with your project's anon/service_role key
{
fetch: fetch.bind(globalThis), // Tell Supabase Client to use Cloudflare Workers' global `fetch` API to make requests
}
)
const { data, error } = await db.from('YOUR_TABLE_NAME').select('*')
if (error) {
console.log(error)
return new Response(error.message || error.toString(), {
status: 500,
})
}
return new Response(JSON.stringify(data), {
status: 200,
headers: { 'Content-Type': 'application/json' },
})
}
Milou
03/23/2022, 5:24 PMPaul
03/23/2022, 6:41 PMPaul
03/23/2022, 6:41 PMconst {data, error} = await supabase
.from('SignalJourneyAudiences')
.insert([
{
segment: newSegment,
enabled: false,
},
])
ppikachu
03/23/2022, 7:02 PMPaul
03/23/2022, 7:46 PM/
when using supabase.auth.signOut()
i can't find it in the docsNeedle
03/23/2022, 8:13 PM/title
command!
We have solved your problem?
Click the button below to archive it.zeem
03/23/2022, 8:35 PMguilds
scope when authenticating with discord since i want to know what servers the logged in user is in
but whenever i log supabase.auth.user()
i don't get the guilds property at all
like how can i access the guilds?Kasper
03/23/2022, 9:58 PMEdan
03/23/2022, 10:46 PMchris
03/24/2022, 2:15 AMak4zh
03/24/2022, 3:11 AMVuNguyen
03/24/2022, 3:37 AMkaguya_room_users
table, I'm doing as below, I query the users that associated with the room, then use users.length
to get it. Is it the best way to do that?
js
supabase
.from<Room>("kaguya_rooms")
.select("*, media(*), episode(*), users:kaguya_room_users(id)", {
count: "exact",
})
VuNguyen
03/24/2022, 4:31 AMjs
supabase
.from(`kaguya_rooms:id=eq.${query.id}`)
.on("UPDATE", (payload) => {
console.log("Change received!", payload);
})
.subscribe();
Is there anyway to join table on the fly with realtime?Ethanxyz
03/24/2022, 7:13 AMDesertRodent
03/24/2022, 10:29 AMTMShader
03/24/2022, 11:37 AMstorage.foldername(name)
return?Foressli
03/24/2022, 11:53 AMPaul
03/24/2022, 1:33 PMasync function login() {
const {user, session, error} = await supabase.auth.signIn(
{
provider: 'google',
},
{
redirectTo: 'https://www.signal-journey.xyz/home',
},
)
Manuel Coffin
03/24/2022, 2:02 PM1. A user signs up. Supabase creates a new user in the auth.users table.
2. Supabase returns a new JWT, which contains the user's UUID.
3. Every request to your database also sends the JWT.
I was wondering if the process is automatic, or is it the dev responsability to store the jwt and send it to. each request? Thanks!JR23
03/24/2022, 2:02 PMazel
03/24/2022, 2:55 PMJWSError JWSInvalidSignature
. We can't get the data from the 1st database when the user is logged in using the 2nd database.
Does anyone experience this?Devr
03/24/2022, 3:04 PMAdi
03/24/2022, 3:21 PMSkander
03/24/2022, 4:01 PM