I am using the realm sync for the data integration. we have a different properties in collections that are not allowed to realm sdk to be updated. When realm sdk read the data. it gets that object value to null beacuse of new data enter in a certain field initially, after updating the data. Its value is set to null in our collection. For that issue, i have created the realm sync rule. But it is not working properly.
I am sharing the rule with all. please guide me where i am wrong. FrameSettings is marked as read-only but again its values are getting updating.
"roles": [
{
"name": "owner",
"apply_when": {
"UserId": "%%user.id"
},
"insert": false,
"delete": false,
"search": true,
"read": true,
"fields": {
"FrameSettings": {
"write": false
},
"Status": {
"write": true
}
},
"additional_fields": {
"write": false
}
}
]