Trying to create a query - with left join limit 1 and order by
i want to search for all the cards with the last activity (one, ordered by createdBy)
this is the naive implementation
the issue is with ".where", as im getting this error
error: invalid reference to FROM-clause entry for table "Cards"
i can overcome this with findMany + with but i need another many to many join there that is not supported by the query mechanism
i would love for some help pls 🙂1 Reply
i think it can be achieved with lateral join, is this supported? or is there any workaround?
pretty please 🙏