-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Schemas refresh issue #4921
Comments
I just found a
Thanks! |
Although I don't know the reasoning behind caching the schema (I imagine performance and reliability) I think this section in the documentation has some answers https://hasura.io/docs/1.0/graphql/manual/remote-schemas/index.html#schema-refreshing |
Ok thanks @GeKorm this is what I needed to know, more specifically, how to programatically reload remote schemas: https://hasura.io/docs/1.0/graphql/manual/api-reference/schema-metadata-api/remote-schemas.html#reload-remote-schema But it would be nice to know the reasons behind this strategy. From documentation:
|
@samuelcastro This was done to improve performance. Reloading remote schema everytime the metadata changes starts having performance impacts if you have lots of remote schemas or have very large remote schemas. As in most cases metadata change are due to updates to the database schema or other configuration such as relationships or permissions, it is wasteful to keep refreshing the data from remote schemas on every change. Hope this makes sense. |
Ok @rikinsk it makes more sense now. Thanks! |
Hi @rikinsk Is there a way to reload schemas from Hasura CLI? Does Hasura Metada Reload also reloads remote schemas? https://hasura.io/docs/1.0/graphql/core/hasura-cli/hasura_metadata_reload.html |
I'm facing an weird issue with remote schemas, I have a remote schema in a headless CMS (GraphCMS) and usually the schema changes quite often, the problem that I'm facing is that once I changed the schema on GraphCMS those changes are not reflected on Hasura, they old schemas are still preserved somehow, it looks like some sort of cache or something.
Thoughts?
Thanks.
The text was updated successfully, but these errors were encountered: