I'd like to chain multiple queries together that are on different models is this possible?
Example: I have Restaurants that have many Dishes. I want to search for restaurants that are close to a location and then search for the dishes those restaurants have that match a query. I'm using geocoder
and PGSearch for both of the queries, but I don't know how to get them to work together so that I have one query instead of loading all the nearby restaurants into memory and then search by the query.
Thanks!