Yonben
02/21/2022, 10:37 PManonaki
02/22/2022, 2:02 AManonaki
02/22/2022, 2:11 AMstatico
02/22/2022, 6:10 PMreact-supabase
or use-supabase
?JeyJey
02/22/2022, 9:58 PMits-pablo
02/22/2022, 11:35 PMScott P
02/22/2022, 11:46 PMJeyJey
02/22/2022, 11:47 PMgaryaustin
02/22/2022, 11:52 PMTitusTetricus
02/24/2022, 8:15 PMlet { data: parameters, error, status } = await supabase
.from('parameters')
.select(`*`)
.eq('user_id', user.id);
Any help as to what I am missing here? Hitting the API directly via Postman does not return the single record either. Thanks.garyaustin
02/24/2022, 9:24 PMShooTeX
02/26/2022, 11:13 PMShooTeX
02/26/2022, 11:18 PMsupabase
.from("*")
.on("*", (payload) => {
console.log("change", payload)
})
.subscribe(console.log)
.onError((e) => console.log("error", e))
garyaustin
02/26/2022, 11:46 PMRyanHirsch
02/27/2022, 3:50 AMThomasLeveque
02/27/2022, 8:53 AMselect(
`
*,
votesCount:votes(count)
`)
where i get the count of a relational table votes
. Do you know if it is possible to order my result based on votesCount
?
something like this order('votesCount', { ascending: false })
(not working)
I have also tried order('count', { ascending: false, foreignTable: 'votesCount' })
(the query is working but northing is ordered)Yeehawlerz101
02/27/2022, 2:54 PMgaryaustin
02/27/2022, 3:35 PMgaryaustin
02/27/2022, 3:34 PMalxndr
02/27/2022, 6:10 PMawait supabase.from("posts").select("*").textSearch("title, description, info", searchValues)
The issue is that info
is a jsonb column and the returned results do not match on any of the strings in that column, anyone know how I can achieve this? Specifically, I want to match on the values, not the keys. So for example, info might have an object like: { topic: "postgres" }
and I'd like for this row to be returned if the provided searchValues
string contains "postgres"
I've been reading about how to create another column on the table that is a concatenation of other columns to run text search against that column, but so far haven't been able to figure out the syntax to do this with a jsonb column, but I was able to create one from other column types be it text or enum, for example, open to a solution like that as well.
Thanks in advance!cbert
02/27/2022, 8:51 PMsilentworks
02/27/2022, 9:42 PM2old4this
02/27/2022, 11:04 PMsilentworks
02/28/2022, 9:47 AMCHIΞFMCCONNΞLL.ΞTH
02/28/2022, 8:17 PMCHIΞFMCCONNΞLL.ΞTH
02/28/2022, 8:19 PMgaryaustin
03/01/2022, 10:56 PMCHIΞFMCCONNΞLL.ΞTH
03/01/2022, 11:23 PMCHIΞFMCCONNΞLL.ΞTH
03/01/2022, 11:23 PMCHIΞFMCCONNΞLL.ΞTH
03/01/2022, 11:26 PM