Mondocooler
12/11/2021, 6:15 AMMondocooler
12/11/2021, 6:16 AMthyme
12/11/2021, 8:00 AMScott P
12/11/2021, 8:01 AMthyme
12/11/2021, 8:02 AMshivam51
12/11/2021, 10:17 AMjs
let { data: todo, error } = await supabase
.from('todos')
.insert({ task, user_id: user.id })
.single()
What is the use of single here?anothercoder
12/11/2021, 11:58 AMshivam51
12/11/2021, 12:25 PManothercoder
12/11/2021, 12:45 PMHhorn
12/11/2021, 1:36 PM.from('$tableName:id=eq.$currentId')
.stream()
.execute()
But if i want to do more complex queries like Array Contains, I get the initial value but i don't receive any realtime updates.
These command for example do not work:
.from('$tableName:id=eq.$documentId')
.stream()
.execute()
.from('$tableName?$arrayName=cs.{"$arrayValue"}')
.stream()
.execute()
I would be very glad for any help, as I would like to use the realtime feature also with queries like these.cookie mob
12/11/2021, 2:10 PMcookie mob
12/11/2021, 2:24 PMgaryaustin
12/11/2021, 2:49 PMM0nk3yBrainDead
12/11/2021, 4:04 PMdirkk0
12/11/2021, 4:12 PMsilentworks
12/11/2021, 4:32 PMSumitBando
12/11/2021, 4:46 PMhack1nt0sh
12/11/2021, 5:00 PMthyme
12/11/2021, 7:01 PMThirdBase
12/11/2021, 9:24 PMcookie mob
12/11/2021, 9:50 PMsantiarr
12/12/2021, 12:50 AMsupabase start
I get GRANT
Error: Error running SQL: ERROR: type "userServers" does not exist
ERROR: current transaction is aborted, commands ignored until end of transaction block
I've been following this guide : https://github.com/supabase/cli/blob/main/examples/tour/README.mdkroket
12/12/2021, 12:49 PMconst { data: authListener } = supabase().auth.onAuthStateChange(
async (event, session) => {
setSession(session);
setUser(session?.user ?? null);
await axios.post("/api/auth", { event, session });
}
);
the only event that being send is SIGNED_IN
, anyone ever experience this ?Barba
12/12/2021, 1:01 PMBarba
12/12/2021, 1:03 PMshivam51
12/12/2021, 3:06 PMshivam51
12/12/2021, 3:06 PMimtiaz
12/12/2021, 4:14 PMcodesalim
12/12/2021, 6:23 PMgaryaustin
12/12/2021, 7:45 PM