Realm.io per-object permissions, compared to Firebase

梦想的初衷 提交于 2019-12-12 04:21:44

问题


I'm considering switching from Firebase DB to Realm.io.

For my app, I need sharing items between users (in a many-to-many fashion).

In Firebase there is a permissions language (and the Bolt compiler).

What is the equivalent model in Realm.io?

Can I share objects between users, with controlled permissions?

EDIT: I'm talking about fine-grained per-object sharing, not coarse-grained per-database sharing.


回答1:


In the current release, permissions are defined per Realm (collection of objects), not fine-grained per object. You can obviously easily implement a "filtering" functionality unless you have strict security requirements that prohibit having some "irrelevant" data physically on a device despite it being fully encrypted.

If there are specific details you don't find sufficiently covered in the official docs please elaborate what those are.



来源:https://stackoverflow.com/questions/41576289/realm-io-per-object-permissions-compared-to-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!