ropensci / graphql

Bindings to libgraphqlparser for R

Home Page:https://docs.ropensci.org/graphql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql

Bindings to the 'libgraphqlparser' C++ library. Parses GraphQL syntax and exports the AST in JSON format.

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

Hello World

Simple example

> graphql2json("schema { query: QueryType }", parse_schema = TRUE)
{"kind":"Document","loc":{"start": {"line": 1,"column":1}, "end": {"line":1,"column":28}},"definitions":[{"kind":"SchemaDefinition","loc":{"start": {"line": 1,"column":1}, "end": {"line":1,"column":28}},"directives":null,"operationTypes":[{"kind":"OperationTypeDefinition","loc":{"start": {"line": 1,"column":10}, "end": {"line":1,"column":26}},"operation":"query","type":{"kind":"NamedType","loc":{"start": {"line": 1,"column":17}, "end": {"line":1,"column":26}},"name":{"kind":"Name","loc":{"start": {"line": 1,"column":17}, "end": {"line":1,"column":26}},"value":"QueryType"}}}]}]} 

About

Bindings to libgraphqlparser for R

https://docs.ropensci.org/graphql

License:Other


Languages

Language:C++ 91.8%Language:C 7.7%Language:R 0.6%