admin管理员组文章数量:1122846
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'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.
Share Improve this question edited Nov 22, 2024 at 15:58 BobDidley asked Nov 21, 2024 at 20:23 BobDidleyBobDidley 1691 silver badge10 bronze badges1 Answer
Reset to default 1I 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
}
}
}
- Primary rate limit (5,000 points / hour): you're down to 4,999 points for this hour
- too many concurrent requests (100 concurrent): don't do more than 99 more of these at the same time
- too many requests to a single endpoint (2,000 points / minute): you're down to 1,995 points for this minute.
- ...etc
See Calculating points for the secondary rate limit
本文标签: Does Mutation Response Data Count As Query Points in GitHub GraphQL APIStack Overflow
版权声明:本文标题:Does Mutation Response Data Count As Query Points in GitHub GraphQL API? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307391a1933295.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论