When using Apollo Server to write a GraphQL server, how can I run a command on the server to generate the schema.graphql
file for the client to consume? Note: I'm not using the Apollo Client, I'm using Relay.
I know I can run the GraphQL playground and download it from there, but I want a command line that I can automate.
I'm searching for something similar to rake graphql:schema:dump
when using GraphQL Ruby which you can run on the server to generate the schema.graphql
.