Initial GraphQL interface implementation#6821
Initial GraphQL interface implementation#6821AskAlexSharov merged 13 commits intoerigontech:develfrom
Conversation
|
GraphQL actually enabled if using --graphql but could be changed to use --http.api=graphql To test it, go to A sample block query is bundled in the graphql/ subdirectory |
|
looks good. need port geth's tests also |
|
@AskAlexSharov : I'll try to add unit tests this week-end Any preference for protocol activation ? (--graphql to mimic Geth) or via the "erigon standard" --http.api=graphql ? |
Geth-compatible |
|
Unit tests from geth imported and improved (tests via regexps, also tests chainID query) |
|
For Graphq tests to work, rpcdaemon have to be run with --graphql --- FAIL: TestGraphQLQueryBlock (0.00s) |
59ad4e5 to
9342bc3
Compare
…ber as string or uint64, missing means latest block
|
Thanks @AskAlexSharov |
Let's turn this test to UnitTest. I don't see why we can't start graphql server inside test. |
|
Hey I see you guys added basic support for GraphQL. I made a PR to change the schema slightly, basically enforcing every number (Int, Long or BigInt) to be formatted as hex. Feel free to chime in: ethereum/execution-apis#389 |
|
Thanks @s1na. Would take a look |
That's an initial PR mostly for code review, not ready for production use Got basic GraphQL working when querying a single block --------- Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
That's an initial PR mostly for code review, not ready for production use
Got basic GraphQL working when querying a single block