Apologies if duplicated
I have a database set up in the following way:
- users
- <random user id>
- Projects
- <random project id>
- data
What I would like to do is: get all users where the 'Projects' node exists and where <random project id> is equal to a specific value, without getting the entire database and filtering the data inside my react-native application, because it seems wrong to just bring everything. I heard that it is possible to 'reverse engineer' react-native applications, and I fear that someone might listen the app requests and somehow get access to all that data, so I would like to bring only the data that belongs to a specific user.. if possible.
Today, I simply get all the data by using firebase.database().ref('Users').on('value', ...);
I could filter that data inside my app, but, as I said, I have security concerns..
But since I'm new to this, I could be looking at this with a wrong perspective, so I appreciate any help!
Thanks!