Sqlalchemy Query Dołącz do wielu do wielu
session.query(User).join((Group, User.groups)) \
.join((Department, Group.departments)).filter(Department.name == 'R&D')
Hilarious Hippopotamus