Skip to content

Reading query from project instead of via Admin UI #10563

Answered by deanmarcussen
ns8482e asked this question in Q&A
Discussion options

You must be logged in to vote

I actually did this recently for some graphql queries I preferred to embed.

Implemented it like recipe harvestors, but harvested .graphql instead.

I chose not the wrap the query manager, but implemented another one, as they were not for front end queries.

But you could wrap the query manager and either divert to the document based or embedded ones.

It was quite effective, as it was easy to cut and paste queries out of graphql explorers on the site we were connecting to.

I think I parsed the query name out of the graphql file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ns8482e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants