gh_gql {gh} | R Documentation |
A simple interface for the GitHub GraphQL API v4.
Description
See more about the GraphQL API here: https://docs.github.com/graphql
Usage
gh_gql(query, ...)
Arguments
query |
The GraphQL query, as a string. |
... |
Name-value pairs giving API parameters. Will be matched into
|
Details
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.
See Also
gh()
for the GitHub v3 API.
Examples
gh_gql("query { viewer { login }}")
# Get rate limit
ratelimit_query <- "query {
viewer {
login
}
rateLimit {
limit
cost
remaining
resetAt
}
}"
gh_gql(ratelimit_query)