I’m thinking of building both an iOS app and a Web app that interacts with our Realm app, and I’m trying to determine my method(s) to communicate with the Realm app. I’m thinking Realm Sync could be useful for the iOS app, but I’m concerned that this will mean I won’t be able to take advantage of non-sync rules for my Web app after seeing the following message on your Define Sync Rules page:
This page describes data access rules for synced clusters. Non-synced cluster use a different rules model that sync rules override. If sync is enabled for a cluster, any non-sync rules defined for the cluster do not apply.
If your app does not use sync, check out MongoDB Collection Rules for more information on rules for non-synced clusters.
Is it possible to use the Sync Rules when communicating between the iOS app and the Realm app, while still being able to use the regular non-Sync rules for communications with the Web app? If not, then how would I communicate between the Web app and Realm app in a way that keeps users’ access to data secure if I’m using Realm Sync for the iOS app? Will the GraphQL API, direct CRUD operations, and/or Functions work? Or would I need a separate Realm app for the Web app and iOS app?