Programmatically get all GraphQL schemes

We use https://www.graphql-code-generator.com/ currently to update latest changes on our frontend with Apollo client.
You can use previously mentioned Introspection query to download latest schema or even built-in GraphQL Code Generator feature to update the code.
You just need to configure code generation using provided docs codegen.yml | GraphQL Code Generator