madx
02/08/2022, 9:28 AMzander
02/08/2022, 9:30 AMilike
, everything works as expected with %
. I added the tags
part today and now it is brokenzander
02/08/2022, 9:33 AM%
with *
and got a similar error:
json
{
"reason": "Problem fetching feed",
"error": "\"failed to parse logic tree ((title.ilike.*reading*,tags.cs{reading}))\" (line 1, column 43)"
}
madx
02/08/2022, 9:45 AManan7
02/08/2022, 9:51 AMCognusBoi
02/08/2022, 10:06 AMor
query be of the form title.ilike.%${searchTerm}%,tags.cs[${searchTerm}]
?CognusBoi
02/08/2022, 10:08 AMmadx
02/08/2022, 10:36 AMzander
02/08/2022, 11:23 AMxtreding
02/08/2022, 12:25 PMpq: bind message supplies 2 parameters, but prepared statement \“\” requires 25" (error)
?
The statement is selecting all columns with types:
SELECT
pg_attribute.attname AS name,
pg_catalog.format_type(pg_attribute.atttypid,pg_attribute.atttypmod) AS column_type
FROM pg_attribute
JOIN pg_class ON pg_class.oid = pg_attribute.attrelid
LEFT JOIN pg_attrdef pg_attrdef ON pg_attrdef.adrelid = pg_class.oid AND pg_attrdef.adnum = pg_attribute.attnum
LEFT JOIN pg_namespace ON pg_namespace.oid = pg_class.relnamespace
LEFT JOIN pg_constraint ON pg_constraint.conrelid = pg_class.oid AND pg_attribute.attnum = ANY (pg_constraint.conkey)
WHERE pg_class.relkind = 'r'::char
AND pg_namespace.nspname = $1
AND pg_class.relname = $2
AND pg_attribute.attnum > 0
Statement is used in golang Postgres driver (github.com/lib/pq)
Query call looks like:
db.QueryContext(p.ctx, tableSchemaQuery, "myschema", "mytable")
where tableSchemaQuery is the above queryxtreding
02/08/2022, 12:26 PMMorza (Chris)
02/08/2022, 12:31 PMsimpautus
02/08/2022, 1:32 PM/me?fields=email,first_name,last_name,name,picture
it returns (default?) 50x50 url only. If I was able to alter the request URL to me?fields=email,first_name,last_name,name,picture.width(1000)
it would return picture url to the nearest dimension to 1000px and so on. The default 50x50 is useless in my case. There's probably many other needs to tweak the request especially with wider permission scopes. Am I missing something or is there a workaround for this?
While we're at it I'd also need separate firstname and lastname. They're also provided by Facebook but joined together as name
by GoTrue.zander
02/08/2022, 1:48 PMMorza (Chris)
02/08/2022, 2:03 PMzander
02/08/2022, 2:12 PMMorza (Chris)
02/08/2022, 2:16 PMMorza (Chris)
02/08/2022, 2:18 PMgaryaustin
02/08/2022, 2:39 PMgaryaustin
02/08/2022, 4:39 PMzander
02/08/2022, 5:19 PMcs
operator like so: tags.cs.{${searchTerm}}
. The difference was that I missed a .
before the opening curly brace. Of course it has that info in the docs and I missed it! 🤦♂️
Thanks for all your helpmadx
02/08/2022, 5:19 PMJim
02/08/2022, 5:44 PMgleki
02/08/2022, 5:46 PMtricked
02/08/2022, 5:48 PMitsnotyalc
02/08/2022, 5:53 PMchannel_users
, channels
, messages
, and users
. I want to get all channels based on the user id (from channel_users
). Any ideas on how to construct that using Supabase?Taner Nill
02/08/2022, 6:25 PMTaner Nill
02/08/2022, 6:26 PMTaner Nill
02/08/2022, 6:27 PMimport { Auth } from '@supabase/ui';
king_k_rab
02/08/2022, 7:46 PM.auth.session() === Session
(not null
), does that trigger .auth.onAuthStateChange()
? Or is that only for login/signup/logout/password recovery, etc etc...