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

Query visitor with schema type info #54

Closed
wants to merge 9 commits into from

Conversation

vladinator1000
Copy link

@vladinator1000 vladinator1000 commented Jul 2, 2021

🚧 Work in progress 🚧
Porting the graphql-js TypeInfo data structure to graphql-parser in order to get schema information as we walk the AST.

I've based this on @davidpdrsn's visitor work from #26 as discussed in my comment in the visitor trait issue.

⚠️ Currently stuck at figuring out how to implement it. Graphql-js has one enter and leave function visitor-wise, where @davidpdrsn's visitor has separate methods for each type of AST node.

Goals:

  1. Get type info about the schema as you walk a query AST
  2. Be able to mutate the AST as you see fit

@vladinator1000 vladinator1000 changed the title Query visitor with type info Query visitor with schema type info Jul 2, 2021
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

Successfully merging this pull request may close these issues.

2 participants