is there a possibility to check whether the data users are adding is already in the DB or is it possible only with doing it "manually" via Firebase cloud functions?
Let me give you a very simple example of what I mean:
I want to store users, however I need Security rules to look for duplicate of the email address and only if there is no matching email adress the received data can be stored.
DB structure:
root
└── users
└── uID
├── email
├── name
└── gender
sent JSON:
{
email: test@test.com,
name: John Example,
gender: male
}
Notice: I am not using those data for logging in. I am just storing data returned from the Facebook Graph API.
Thank you!