Joining on array column
in this example posts can have multiple authors which are saved in an array field in the database
The above example does not work because join only supports
The first part would need to use the
Is something like this possible already?
The above example does not work because join only supports
eq function; but I also do not see any other option in the functional variants. I would imagine something like this could work;The first part would need to use the
fn I suppose to "materialize" the post.userIds array, but then the users query should be able to fairly efficiently do a lookup.Is something like this possible already?