gh_gql {gh} | R Documentation |
See more about the GraphQL API here: https://developer.github.com/v4/
gh_gql( query, ..., .token = NULL, .destfile = NULL, .overwrite = FALSE, .api_url = NULL, .send_headers = NULL )
query |
The GraphQL query, as a string. |
... |
Name-value pairs giving API parameters. Will be matched
into |
.token |
Authentication token. Defaults to |
.destfile |
path to write response to disk. If NULL (default), response will be processed and returned as an object. If path is given, response will be written to disk in the form sent. |
.overwrite |
if |
.api_url |
Github API url (default: https://api.github.com). Used
if |
.send_headers |
Named character vector of header field values
(except |
Note: pagination and the .limit
argument does not work currently,
as pagination in the GraphQL API is different from the v3 API.
If you need pagination with GraphQL, you'll need to do that manually.
gh()
for the GitHub v3 API.
gh_gql("query { viewer { login }}")