[feature_request] Add total user stargazers object to GraphQL API #35677
Unanswered
rickstaa
asked this question in
API and Webhooks
Replies: 1 comment
-
|
Isn't it already implemented ? When I do the following query I have my |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no easy way to fetch the total stars a specific user has received on his/her repositories using the GraphQL API. Currently, this information is only available under the repositoryconnection object. Providing users with a way to retrieve their total number of starGazers without looping through all repositories would improve the GraphQL API.
Current behaviour
Current graphQL query:
Current GraphQL variables
{"login": "rickstaa"}This will return the stargazers per repository.
New behaviour
Making the
stargazersobjects available under the user level would improve the behaviour.New graphQL query:
New GraphQL variables
{"login": "rickstaa"}Alternatives I considered
Using github pagination
I currently use GraphQL pagination to loop through all repositories. This, however, will take a long time.
Beta Was this translation helpful? Give feedback.
All reactions