Postgresql – SQLAlchemy filter with many-to-many relations
A store can have many interests. User request a product that is tagged. Query required is to get the product requests that have tags shared with current store. # in Store -> relationship('Tag', secondary=store_interest_tags, lazy='dynamic', backref=backref('store', lazy=True)) store_tags = store.interests…