Diem: Native GraphQL API

Created on 26 Jun 2019  路  1Comment  路  Source: diem/diem

馃殌 Feature Request

I would like to propose integrating a GraphQL API natively into Libra nodes. This API would provide all of the functionality of a REST or JSON RPC API, similar to how interaction with Ethereum nodes works currently.

Motivation

Is your feature request related to a problem? Please describe.

Interacting with major blockchains like Ethereum usually seems to require using a JSON RPC API or something similar. Libraries are built on top of these APIs to abstract away their complexity or offer additional functionality. Each of these libraries create their own APIs, this creating fragmentation and friction when moving between libraries.

Pitch

Describe the solution you'd like

A natively implemented GraphQL API would provide a consistent declarative interface to the Libra blockchain. It would be easily extensible with custom queries and mutations, and if functionality weren't able to be implemented at the node level, third-party libraries could easily compose their own solutions by augmenting the existing GraphQL API.

Describe alternatives you've considered

Not providing a GraphQL API?

Are you willing to open a pull request? (See CONTRIBUTING)

Maybe...with some direction

Additional context

GraphQL is amazing, Facebook created it, I hope it will be considered.

enhancement

Most helpful comment

Thank you for the suggestion! This is something that we have been considering!

>All comments

Thank you for the suggestion! This is something that we have been considering!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uschen picture uschen  路  4Comments

davidiw picture davidiw  路  4Comments

bmwill picture bmwill  路  4Comments

rollsmorr picture rollsmorr  路  5Comments

gr0kchain picture gr0kchain  路  5Comments