Shopify App rake task:
So with an oAuth token, this will dump the GraphQL schema. How are people using this exactly in their Rails projects? I was just dumping the Scheme using graphql-client gem and then loading it once statically in the gem so that I was not blowing up memory. I am curious as to how others are taking advantage of this rake task to dump the scheme and then use it in Ruby to make Query calls and Mutations.
It is nothing more than a convenience for development mode. Shopify has jigged the Shopify App gem to look for the schema when running in development, to help with errors and the like. There is no need for the schema in production because hopefully, your setup and calls are already tested and working.
One note, there seems to be a quirk where even in production, it seems on first boot and loading of a Rails App with the Shopify App gem, there is a delay and it seems to stem from the App loading this schema, even though it is NOT needed. So this is probably a bug.