Here’s my question, which I already got a response from the Realm team on, but bear with me!
“When following the tutorial, it says for React Native to use Sync but for Web to use GraphQL. So for each one the way permissions are handled is different, and the way data is sent across the wire is also different. So does this mean that we would need to create 2 Realm Apps to support both mobile and web users? (which seems therefore that users would exist in both apps - but not be able to see data created in one app, since the user_ids will not be the same)?”
The answer was:
“GraphQL and Sync are both services that you can use with one Realm App. The way to define permissions for both are slightly different at the moment, but you are not required to create two applications if you want to share the same users across Web and mobile.”
This answer is conflicting - it says you can use one App, but permissions don’t work the same ‘at the moment’. It’s not clear at all.
In the Realm settings, if you ENABLE Realm Sync, then the permissions you set in the RULES section do not apply. Surely that means GraphQL queries will fail?
So does the ‘at the moment’ mean it’s not possible yet? Or is it actually possible, today, to setup users in one Realm App and have the permissions work from React Native client using Sync and a Web client using GraphQL?