I have User which has a username, UID, email so I want the email field and UID cant reached because some users don't want to spam their email by reading its email child and in my app register to search Users is not required How can work with this problem?
I thought to make a tree that no one can read/write except the Firebase but it doesn't exist in the Firebase
EDIT
{
"bdjsjd" : {
"email" : "something1@gmail.com",
"name" : "bdbsndnd",
"username" : "bdjsjd"
},
"developer" : {
"email" : "something2@gmail.com",
"name" : "dev_mohammed",
"username" : "developer"
}
}
when I want to read this by key(the key is user's username)it will return the email as well but I want to return everything except the email field if the user doesn't want to get the email by anyone else him but can I do this?