Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to persist a query/mutation for every developer to use? #2

Open
tjventurini opened this issue Feb 26, 2020 · 1 comment
Open

How to persist a query/mutation for every developer to use? #2

tjventurini opened this issue Feb 26, 2020 · 1 comment

Comments

@tjventurini
Copy link

I was wondering if there is the option for me to persist the queries and mutations to some config file or similar, so the frontend guys always have the newest versions of the samples I provide. I saw that there is the option to share it via graphqlbin but I was rather looking for something that I can have directly in my git project.

Thank you :)

@imolorhe
Copy link
Contributor

Hey, how do you mean? The schema should already be loaded if you pass the graphql endpointURL option. You can also set an initialQuery option to specify a query that would be set initially in the app. There are many more options as can be found here: https://github.com/imolorhe/altair#configuration-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants