ghql - general purpose GraphQL client

GraphQL - http://graphql.org

ghql uses the rOpenSci’s package graphql, GraphQL query parser.

Examples of GraphQL APIs:

Github Authentication

See https://developer.github.com/early-access/graphql/guides/accessing-graphql/ for getting an OAuth token.

Store the token in a env var called GITHUB_GRAPHQL_TOKEN before trying this pkg.

Install

Development version

devtools::install_github("ropensci/ghql")
library("ghql")
library("jsonlite")

initialize client

load schema

Since not every GraphQL server has a schema at the base URL, have to manually load the schema in this case

run a local GraphQL server

Meta

  • Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.