-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
GraphQL API #882
Comments
Hi @lastmjs , love the idea. |
Awesome, so is it best to try to get a GraphQL API standardized through that channel then before any implementation here? Should this issue remain open? |
GraphQL won't be standardized across clients, you can read about reasoning here: ethereum/consensus-specs#1012 It will be additional feature that some clients expose. |
Oh, I think arguments against GraphQL wasn't int that issue(there is only why REST api was decided), I think arguments against starting with standardized graphql was in api call somewhere |
Yeah, I think we can implement this in parallel to standardization. It seems from the call notes that there was some interest in GraphQL, but maybe not as an officially standardized API. (You might ask about interest in the eth2 discord) |
It would be cool to use https://github.com/IBM/openapi-to-graphql to generate graphql schema from rest openapi definition in api spec repo |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue or pull request has been automatically been closed due to inactivity. |
Is your feature request related to a problem? Please describe.
Traditionally Ethereum clients have exposed their APIs through JSON RPC, or perhaps REST. Though functional, there are some drawbacks to this approach. One of the main drawbacks IMO is requiring developers to learn yet another protocol for requests. Each application that exposes an API over http has different rules and syntax. GraphQL provides a solution to some of these drawbacks, mostly through its standard and flexible query language.
Describe the solution you'd like
Like Geth has done with their Ethereum client, I would love to see a GraphQL API exposed, along with the current REST API. I would be happy to consider doing this work myself.
The text was updated successfully, but these errors were encountered: