Delay between setting GraphQL schema and getting generated schema

I have noticed that when the schema is set using the http://host:8080/admin/schema endpoint and you immediately query the DQL schema via http://host:8080/query and/or GraphQL generatedSchema via http://host:8080/admin the DQL schema and GraphQL generatedSchema have not updated.

However, if I do the DQL and GraphQL schema queries a ‘short while’ later the schema has updated.

Is this expected?
How can I determine/test for when the schema as been updated?

Hmmm my bad - the implementation I have is using async in Javascript and I failed to await and as such the request for the schemas was happening before the update :man_facepalming:t2:

1 Like