Go Libray for GraphQL schema parsing

Hi everyone,

I’m using Go, and I need to parse GraphQL requests intended for and the schema used in SlashQL.

For example, @chewxy mentioned parse_query and parse_graph from the graphql_parser Rust pkg https://docs.rs/graphql-parser/0.3.0/graphql_parser/fn.parse_query.html

Does anyone know of a lib/pkg to do that w/ Go? i.e. Does https://github.com/vektah/gqlparser work?

Thx

I believe the dgraph repo has a graphql parser (but ironically it’s not in the graphql subdirectory. @pawan showed some snippets to me yesterday but I could not for the life of me remember where it is

@pawan @chewxy Looks like dgraph uses gqlparser ?

True dat!

Hey @chewxy For case 1, is there a library in Go for doing that? I’m recently encountering similar situation.

Use this:

1 Like