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

Integrate GraphQL schemas #163

Closed
s1na opened this issue Jan 19, 2022 · 2 comments · Fixed by #199
Closed

Integrate GraphQL schemas #163

s1na opened this issue Jan 19, 2022 · 2 comments · Fixed by #199

Comments

@s1na
Copy link
Contributor

s1na commented Jan 19, 2022

Hey all. Right now the GraphQL spec is frozen. Do you all think this is a good place to put the specs to make them "living" documents instead? In that case I'd be willing to work on that.

@lightclient
Copy link
Member

@s1na this would be a great place for it!

@s1na
Copy link
Contributor Author

s1na commented Feb 8, 2022

I have a first draft here: https://gist.github.com/s1na/77e5d54a9a305244571abc7871fdcbaa
This is an introspection query against geth's GraphQL endpoint. Clients could run the script against their implementation and compare the resulting schema. Because the REST APIs were in JSON I output these schema also in JSON. If a human-readable format is better we could output it in GraphQL's SDL (just like the EIP).

Update: added a file with the schema in SDL to the same gist.

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 a pull request may close this issue.

2 participants