Reading query from project instead of via Admin UI #10563
-
Is it possible to read query from file system(embedded in module) instead of Document manager? |
Beta Was this translation helpful? Give feedback.
Answered by
deanmarcussen
Oct 25, 2021
Replies: 1 comment
-
I actually did this recently for some graphql queries I preferred to embed. Implemented it like recipe harvestors, but harvested 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ns8482e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.