由于Realm不再推荐 query-based sync
(https:/docs.realm.iosyncusing-synced-realmschoosing-your-sync-type#query-based-sync。),我决定改用 full sync
现在我遇到了一个用户权限的问题。我不能设置它们,通过使用 User.applyPermissions(...)
既然境界已经是 reference type
.
下面是我的问题。
有没有一种方法可以将境界用户的权限设置为: reference type
领域,当我使用 full sync
? User.applyPermissions(...)
(https:/docs.realm.iosyncusing-synced-realmsaccess-controlpath-level-permissions#granting-permissions。)似乎不能与 reference type
境界。我曾用不同的 full type
境界,而且工作正常。
是否可以将一个 reference type
到 full type
?
我能想到的另一个选择,就是把这些境界重新创造出来。full type
用不同的名字并将数据复制过来。