Converting a Rails has_many :through relationship?

Welcome to the community @simonmd! I struggled with explicit many-to-many relations too, but finally got it working the way I wanted over here Subqueries in Prisma, Many-Many relation Do have a look if you haven’t already, see if that helps