Show entry only if at least one entry in foreign table One-to-Many relation
Hi,
selecting a foreign table with One-to-Many relationship with a condition like eq specific user id will still show the entity from the initial table even though the foreign table has an empty array. Is there a way to filter the entries by foreign table count not 0? I have tried many things but they lead to errors. This is my query
If I could something say that friend_requests should be a right join, then it would return only the profile if any friend_requests are found. Thank you in regards
selecting a foreign table with One-to-Many relationship with a condition like eq specific user id will still show the entity from the initial table even though the foreign table has an empty array. Is there a way to filter the entries by foreign table count not 0? I have tried many things but they lead to errors. This is my query
If I could something say that friend_requests should be a right join, then it would return only the profile if any friend_requests are found. Thank you in regards