I need to make a nested query but I can't find the relationship

I have two entities neighborhoods and amenities, to combine both I use a third table, neighborhoods_amenities (amount, amenity_id, neighborhood_id).

And I understand that strapi generates links between all related tables, but just for this case I can’t find a way for the api rest to filter me neighborhoods where neighborhoods.neighborhoods_amenities.amenity is within the selected ones, with the rest of relationships it works perfect, but this type of relationship is not reached by the general linking, is it possible?

I am new to using strapi but I don’t see any clear reference to this in the documentation either :cry:

This topic has been created from a Discord post (1299159923782844476) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord