Skip to contents

Get GraphQL connection to Github. Refresh schema before returning.

Usage

get_gq(token, url = "https://api.github.com/graphql")

Arguments

token

Github personal access token. See Authenticating with GraphQL.

url

GraphQL API URL. Default is https://api.github.com/graphql

Value

GraphqlClient object

Examples

if (FALSE) {
  token <- Sys.getenv("GITHUB_TOKEN")
  gq <- get_gq(token)
  gq
}