graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

Refetch periodically

Open jln13x opened this issue 3 years ago • 5 comments

Whenever I change the schema in my backend, I get the wrong type hints in Vscode for my Frontend and I have to manually restart the gql language server.

Is there any way to refetch the schema from my backend periodcally?

jln13x avatar Feb 09 '22 21:02 jln13x

Same here.

neongreen avatar Jun 15 '22 16:06 neongreen

Are you using schema introspection? As in, is your schema specified as an http/s uri? Or is schema in files? Assuming by re-fetch it’s over the wire?

I know where the cache invalidation isn’t happening yet, so I think I know how to solve this problem

acao avatar Jun 15 '22 16:06 acao

Are you using schema introspection? As in, is your schema specified as an http/s uri? Or is schema in files? Assuming by re-fetch it’s over the wire?

I know where the cache invalidation isn’t happening yet, so I think I know how to solve this problem

Its over the wire yes

jln13x avatar Jun 15 '22 20:06 jln13x

I'm having the same issue while using schema in files

ividic avatar Sep 02 '22 11:09 ividic

The cache doesn't appear to be purged even when restarting the gql language server for me. When new properties are added, I have to manually download the schema and manually reference this "for a while" (I assume until VS's cache is purged).

Is there a way to manually purge this cache?

JoshWhiteTTD avatar Nov 23 '23 15:11 JoshWhiteTTD