My database:
{ "user" :
"$userID": {
"name" : "Anon",
"age" : 99
}
}
If client accidentally sends incorrect data but with some valid data, is there a way to update the server only with the valid data?
For example,
user1.updateChildValues(["name" : "John Snow", "age" : 30, "BADKEY" : "BAD DATA"])
I want the above update attempt to work, but only update the database with ["name" : "John Snow", "age" : 30]
in the above situation using database security rule. Is there a way to do this?