Let's say I have a Firebase Realtime database with the below data structure. And let's say I want to allow write access for uuid
and content
but not for locked
. Is that possible to do with the Security Rules?
{
"messages": {
"message1": {
"uuid": "1234",
"content": "Lorem ipsum",
"locked": true
}
}
}
In Firestore you can do something like:
request.resource.data.keys().hasOnly(
['uuid', 'content']
)
Can the same be achieved for the Realtime Database?