realm / realm-graphql-service

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

Invalidate the schema when it changes #68

Closed kraenhansen closed 6 years ago

kraenhansen commented 6 years ago

Would it be possible to use Realm JS's addListener method to listen for changes to the schema and invalidate the schema cache when it changes?

nirinchev commented 6 years ago

We already do that, but the realm has to be open for it to work.

kraenhansen commented 6 years ago

Oh okay - I couldn't find the code for it .. but thanks :)

nirinchev commented 6 years ago

Here it is: https://github.com/realm/realm-graphql-service/blob/master/src/service.ts#L879