realm/realm-graphql-service

As a user I would like to query against a Realm in query-based mode

Closed this issue · 2 comments

The My First Realm App uses the new default configurations to open a Realm in query-based mode, for users to create an Android, iOS and Web app that syncs against the same database the user needs a way to open a Realm in query-based mode via the Graph QL service.

It would also be desirable to be able to create and remove subscriptions from the query-based Realm. A future enhancement could be to have subscriptions being created automagically when the user makes Graph QL queries.

It turns out that opening a query-based (partial) realm actually crashes ROS with:

fatal: Detected an unhandled promise rejection at: [object Promise] reason: Error: A Realm URL may not contain the reserved string "/__partial/".
    at Promise (/app/node_modules/realm/lib/extensions.js:85:29)
    at new Promise (<anonymous>)
    at Function.open (/app/node_modules/realm/lib/extensions.js:84:27)
    at RealmFactory.<anonymous> (/app/node_modules/realm-object-server/dist/RealmFactory.js:111:41)
    at Generator.next (<anonymous>)
    at fulfilled (/app/node_modules/realm-object-server/dist/RealmFactory.js:4:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
fatal: Exiting code 1