Please think of my project similar to a website builder, where websites are created through an admin web app. Each new website requires it’s own MongoDB database and Realm App.
The database stuff is all fine and achievable through the SDKs. I can also create the Realm App along with required functions through the Realm Administration API. However my Realm App needs a specific JSON schema (not generated) and custom resolvers. I cannot see any way that I can set those through the Administration API or the SDK. Am I missing it - it might be a terminology issue?
Currently the only way I can see to create a fully configured Realm App is through an import using the CLI which isn’t ideal from a web application programming perspective. Any assistance is much appreciated.
Unfortunately I don’t think so. The generate schema creates a schema from sample data but because unfortunately what it creates is not suitable for our needs so we have modified it. Also I think that call generates a schema for you, but I don’t know if it sets it or just returns it in the response.
The answer is that it’s a work-in-progress. Currently you’d set the schema through the rules endpointbut it will be moved from there to a more specific endpoint very soon. So, the short-term recommendation is to use the CLI.
There may also be an undocumented endpoint that works at an app level that could be used. We’re checking if this is something suitable to use/document (and won’t become obsolete with the separation of schema and rules).