Aks HN: Why does GitHub grapql API returns missing data?

ThierryRkt1 pts0 comments

My web application relies on the GitHub API. It fetches all the followers/following of a GitHub account and then tries to localize them by their country to show them on a map. The problem is that the gitHub graphQL api returns some missing data (on the following part in general). I investigated, and recently some users also reported some bugs too, like on mobile devices the number of following mutates. I faced the same issue after testing it against some real cases with large follower counts. My actual patch relies on the rest api for the missing cases: first I fetch from the graphql apo, then I do a quick fetch for the list of following, and then I compare the two to find out if there is a missing one, then I recover them by the rest api. Does anyone go through that, and if yes, how did you manage it? I am asking because I want to see if there is a better approach or what kind of cases did you encounter with the gitHub api and how did you solve it

github missing following cases returns data

Related Articles