Closed eliedrian closed 6 years ago
Follow up
Also seeing this, but even if I try to access the GraphQL API of a reference realm with an admin user, I still can't seem to query anything:
Invalid options provided to ApolloServer: Query fields must be an object with field names as keys or a function which returns such an object.
@LucidComplex From the sounds of it, you can still query after authenticating as an admin?
@Dids Yes, I can still query when using an admin user.
I can't access with a regular user, even if the reference realm was created by the same user.
Reference realms are indeed accessible only by admin users. We are going to lift this limitation in a future version, but for now you'll need to deploy an intermediary service that reads data as an admin and serves it to non-admins.
Closing this for now as it relates to an outdated version of ROS and the question was answered. Please reopen if the problem resurfaces.
@nirinchev Is this still an issue with the latest Realm GraphQL client and Realm Cloud?
No, this has been resolved, but you need to make sure to connect using query-based sync.
GraphQL can't access reference realms. This error appears when you attempt to access realm via
realm-graphql-client
Tried setting the realm's permissions to allow the user accessing it, but the same error appears. For now, our workaround is to set the user as an Administrator, which allows access.
Thing to note, I've tried opening full realms, they work. On upgrading them to reference realms, they stop working.