Hi
I’ve never used realm before, but I’ve built a lot of APIs and used a lot of RDBMS and am a certified Mongo developer. I’ve really liked the Realm presentations from Mongo live. But I’m keen on doing modelling well. So I’m just wondering, should data modelling be done differently when working with Mongo Realm? I’m just working through some of the docs, when you define role and permission on a collection and have the templates like Users can read and write their own data
. Does that mean that you can’t have data elements that an administrator would manage within that collection. Thus, you need to separate your data more by user case? For example I have this document structure, that I use in a REST API, where the application holds all the business logic and can manage how certain admins can give access to certain functionality.
{
name: "Mongo" // user defined
teams: [ // defined by some administrator
"team-1",
"contributors"
]
}
But looking at the available templates for Realm, maybe this should be broken out? As you wouldn’t want a user to decide that he can see/perform actions to something an administrator. Am I wrong in this regard?
Thanks