I am trying to explore if it is possible for a Realm Function to include app = New Realm.App(“appid”) ?
Can I manually upload an external dependency based on the realm npm package or is it already accessible.
I’m looking to hide the app id from the client side, and one way I can think of (if possible) is to have the client side fetch a webhook on Realm which then triggers a long function including a Realm Instance.
Creating a Realm instance in the function is not possible but you could use the Realm Admin API to retrieve the application definition for the app in question to send to the client. The response will contain the client_app_id you need for New Realm.App().