gh_gql | R Documentation |
See more about the GraphQL API here: https://docs.github.com/graphql
gh_gql(query, ...)
query |
The GraphQL query, as a string. |
... |
Name-value pairs giving API parameters. Will be matched into
|
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 }}")
# Get rate limit
ratelimit_query <- "query {
viewer {
login
}
rateLimit {
limit
cost
remaining
resetAt
}
}"
gh_gql(ratelimit_query)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.