Filtering against a relation

I have a orgs table that have a many to many relation with a users table.

while querying with the findFirst method how can i filter against the relation so that I only return an org if the user have access to it.
Was this page helpful?