kroltan
Explore posts from serversSubquery from a function
I want to reuse a sub-query that refers to one of the fields in the root query's result.
I tried doing this:
However, I get a bunch o' errors I don't quite understand:
If I pick that exact expression and paste it directly in the
.select(eb => [/* here */])
of the parent query, then there are no errors.
I assume that it's trying to tell me that check_is_friend
might collide with the parent's scope or something like that? Am I doing something silly, is there a better way to do this?16 replies