Title: | A GraphQL Query Parser |
---|---|
Description: | Bindings to the 'libgraphqlparser' C++ library. Parses GraphQL 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.1 |
Built: | 2024-08-29 23:17:07 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)