Self join breaks return type

Same issue as helpIs it possible to make this query typesafe?

The return type of the query is never[]. If I remove the left join, things return to normal.

The query works as expected, the result is just never[].
image.png
Was this page helpful?