This is my Firebase database structure:
Simply it looks like that. There are countries and users. If a user has visited a country it was stored in this user "VisitedCountries" child. for example user Angeline visited England and Turkey, may be she should want to see France, Japan, USA. So I want show a list which is query only 2 countries which was never visited by user before.
If it possibble I want to make it by server side by Firebase rules. How can I achieve that?