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

Add docs for language types Parser:Document & Visitor:AST_node #3868

Open
Tracked by #3150
networkimprov opened this issue Mar 29, 2023 · 0 comments
Open
Tracked by #3150

Add docs for language types Parser:Document & Visitor:AST_node #3868

networkimprov opened this issue Mar 29, 2023 · 0 comments

Comments

@networkimprov
Copy link

In the docs for the language section of the module
https://graphql.org/graphql-js/language/

There are two undocumented types needed by callers:
Document returned by parse()
https://graphql.org/graphql-js/language/#parse
the AST node (mentioned as value) returned by functions in the visitor argument to visit()
https://graphql.org/graphql-js/language/#visit

Also these functions' argument types aren't fully documented:
print() - https://graphql.org/graphql-js/language/#print
visit() - https://graphql.org/graphql-js/language/#visit

I'm using this module to obtain and manipulate a query AST, so docs for AST types would greatly help :)

Btw, I'm calling this module in a browser context, for a new GraphQL client.

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
@networkimprov and others