realm / realm-graphql-service

GraphQL service for Realm Object Server
https://realm.io
Apache License 2.0
43 stars 10 forks source link

Cannot query, mutate or explore a Realm with an empty schema #65

Closed kraenhansen closed 6 years ago

kraenhansen commented 6 years ago

When accessing a Realm with an empty schema via the GraphiQL explorer the service responds with the following error:

"Invalid options provided to ApolloServer: Syntax Error: Expected Name, found }"

error-screenshot

This is probably because the empty Realm and therefore the empty schema results in an unexpected ApolloServer configuration. When building an app that supports a web-first flow we cannot assume that the realm already has a schema.

astigsen commented 6 years ago

@nirinchev is this still relevant?

nirinchev commented 6 years ago

Yes

nirinchev commented 6 years ago

We're now throwing a more meaningful error.