Since Realm is no longer recommending query-based sync
(https://docs.realm.io/sync/using-synced-realms/choosing-your-sync-type#query-based-sync), I've decided to switch to full sync
and now I'm facing a problem with the user permissions. I can't set them, by using User.applyPermissions(...)
, since the realms are already of reference type
.
Here are my questions:
Is there a way/workaround to set Realm User permissions to a
reference type
realm, when I'm usingfull sync
?User.applyPermissions(...)
(https://docs.realm.io/sync/using-synced-realms/access-control/path-level-permissions#granting-permissions) doesn't seem to work withreference type
realm. I've tested with a differentfull type
realm and it worked fine.Is it possible to convert a
reference type
tofull type
?
The other option I can think of, would be to re-create the realms as full type
with different names and copy the data over.
Leaving this in case anyone encounters this issue - recreate the realm as full and copy over your data, there doesn't seem to be a way around it.