I'm trying to understand GitHub's GraphQL API, and I'm wondering if the response for a mutation request counts towards GitHub's rate limitations? According to the Secondary Rate Limitations, mutation requests count as 5 points and non-mutation requests (so query requests?) as 1 point. GraphQL requests are alotted 2000 points. I'd like to know if, for example, the following request would count as 5 points or 6 points.
mutation addIssue($input: CreateIssueInput!) {
createIssue(input: $input) {
issue {
id
}
}
}
I'm new to GraphQL in general, and welcome any feedback.
I think you're mixing the various rate limits, which are calculated separately.
From the docs (emphasis mine):
Some secondary rate limits are determined by the point values of requests. For GraphQL requests, these point values are separate from the point value calculations for the primary rate limit.
So then for this request:
mutation addIssue($input: CreateIssueInput!) {
createIssue(input: $input) {
issue {
id
}
}
}