Problem
query_by_relationship only supports simple equality filters. Passing dict-valued filters (e.g., {"score": {"$gt": 5}}) now raises ValueError (fixed in #15). The search module already supports operator filters — query_by_relationship should delegate to the same logic.
Current Behavior
app.query_by_relationship("contact", "works_at", company_id, filter={"score": {"$gt": 5}})
# => ValueError: Operator filters (e.g., {'$gt': 5}) are not supported
Expected Behavior
Operator filters work the same as in search_entities.
Suggested Approach
Reuse the filter matching logic from upjack.search inside _matches_filter, or replace _matches_filter with a call to the search module's filtering.
Problem
query_by_relationshiponly supports simple equality filters. Passing dict-valued filters (e.g.,{"score": {"$gt": 5}}) now raisesValueError(fixed in #15). The search module already supports operator filters —query_by_relationshipshould delegate to the same logic.Current Behavior
Expected Behavior
Operator filters work the same as in
search_entities.Suggested Approach
Reuse the filter matching logic from
upjack.searchinside_matches_filter, or replace_matches_filterwith a call to the search module's filtering.