graphql: Dump GraphQL Queries to JSON

graphql2jsonR Documentation

Dump GraphQL Queries to JSON

Description

Parses GraphQL queries and exports the AST in JSON format.

Usage

graphql2json(input, parse_schema = FALSE)

Arguments

input

a string with graphql syntax

parse_schema

boolean to enable schema definition parsing

Examples

graphql2json("{ field(complex: { a: { b: [ $var ] } }) }")
graphql2json("schema { query: QueryType }", TRUE)

graphql documentation built on Sept. 26, 2022, 1:06 a.m.

Related to graphql in graphql...