You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
Just looking through I can see that I can parse the AST with GraphProxy.Query, I just wondered if there was any way to recreate that query back from the AST to a string?
Chris
The text was updated successfully, but these errors were encountered:
Lol sorry I copied the name of my module, I meant using GraphQL.Lang.Parser. I needed the functionality because I have to work on a GraphQL proxy that takes a single query and resolves to several GQL instances. I needed to parse the query, and change the AST to only send parts of the query to different instances, at which point I needed to re-stringify the AST.
Its and odd use case I appreciate and in the end I just wrote a simple module to do this, I cant think of any uses you might have for this, feel free to close this down.
@chrisjowen do you have this code available anywhere? I think I could use something similar to what you've made for implementing an ACL, implementing a subscriptions module on top of an existing GraphQL server, and split a query among different databases 😄
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there,
Just looking through I can see that I can parse the AST with GraphProxy.Query, I just wondered if there was any way to recreate that query back from the AST to a string?
Chris
The text was updated successfully, but these errors were encountered: