I'm following the instructions here: https://github.com/Shopify/shopify_api/blob/master/docs/graphql.md
To make GraphQL calls with ShopifyAPI rails gem.
It says it automatically loads the schema dump:
But it didn't actually automatically load the schema dump for me.
So I looked into manually doing it, and it says run this rake task:
But the domain and access token is different for each user of public apps.
Does this mean you need to run the rake task in controller and generate a new schema file on every app install?
Or is there a way to inject shop name and token as a variable from the database when making the client request?
I'm looking for the best way to use GraphQL with the shopify_app gem.
Solved! Go to the solution
This is an accepted solution.
Did you make any progress on this?
It appears the dump is to "ensure your queries are valid in development", so you'll only need to generate it once - perhaps with test store credentials?
@SBD_ Thanks, your answer got me where I needed to go. I appreciate it.