| Title: | A GraphQL Query Parser |
|---|---|
| Description: | Bindings to the 'libgraphqlparser' C++ library. Parses GraphQL <https://graphql.org> syntax and exports the AST in JSON format. |
| Authors: | Jeroen Ooms [cre, aut], Barret Schloerke [ctb], Scott Wolchok [ctb], Facebook, Inc [aut, cph] (libgraphqlparser C++ library) |
| Maintainer: | Jeroen Ooms <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.5.3 |
| Built: | 2025-11-29 06:44:38 UTC |
| Source: | https://github.com/ropensci/graphql |
Parses GraphQL queries and exports the AST in JSON format.
graphql2json(input, parse_schema = FALSE)graphql2json(input, parse_schema = FALSE)
input |
a string with graphql syntax |
parse_schema |
boolean to enable schema definition parsing |
graphql2json("{ field(complex: { a: { b: [ $var ] } }) }") graphql2json("schema { query: QueryType }", TRUE)graphql2json("{ field(complex: { a: { b: [ $var ] } }) }") graphql2json("schema { query: QueryType }", TRUE)