Programmatically get all GraphQL schemes

It would be perfect if there is a way to download programmatically all those Schema and Docs in order to create file for client-side Apollo request. It would be perfect because it’s a lake of time to create them by hand on all my frontend