anand
12/09/2021, 6:23 PMSteve
12/13/2021, 6:14 PMpython
res = await client
.from_("countries")
.select("*,cities(*)")
.where(Column("cities.name") == "Bangkok")
.execute()
anand
12/14/2021, 5:16 AManand
12/14/2021, 5:17 AManand
12/14/2021, 5:17 AMSteve
12/14/2021, 5:29 PMwhere
be accommodated for that case? Perhaps having a cities_where()
method?anand
12/15/2021, 10:30 AManand
12/15/2021, 10:31 AMcities_where
would need pgrest to know the relationships between tables beforehand and then dynamically make such methods, which would both be a pain to implement and be unclear to end-usersSteve
12/16/2021, 4:33 PMwhere
Steve
12/16/2021, 4:35 PMpython
.where(Column("cities.name") == "Bangkok" | Column("other.name") == "Stuff" )
)
Would be allowed by the interface right? But the `|`(OR) won't work.Steve
12/16/2021, 4:37 PMcities_where
was just an idea.Steve
12/16/2021, 4:52 PMColumn("cities.name") | Column("other.name")
happens - an embedded table is OR combined with another embedded table - and then err?anand
12/17/2021, 6:38 PManand
12/17/2021, 6:38 PManand
12/17/2021, 6:39 PManand
12/17/2021, 6:39 PManand
12/17/2021, 6:40 PM