[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
-
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
This will return the stargazers per repository.
New behaviour
Making the
stargazers
objects available under the user level would improve the behaviour.New graphQL query:
New GraphQL variables
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