[GH-ISSUE #160] GraphQL : Query - how to get more than the 100 first repo or how to get next 100 till the last #8

Closed
opened 2026-02-26 04:36:29 +03:00 by kerem · 2 comments
Owner

Originally created by @yboujraf on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/moollaza/repo-remover/issues/160

Dear @moollaza

I tried to modify the number of repo returned by the query.

If more than 100, I got an error.

I tried :

query($ghLogin:String!){
  user(login:$ghLogin) {
    id
    name
    login
    avatarUrl
    bioHTML
    repositories(last:100, ownerAffiliations: [OWNER, ORGANIZATION_MEMBER, COLLABORATOR]) {
      nodes {
        id
        viewerCanAdminister
        name
        description
        isFork
        isPrivate
        isArchived
        updatedAt
        url
        parent {
          nameWithOwner
          url
        }
        owner {
          login
          url
        }
      }
    }
  }
}

I got the last 100 repositories.

But finally, how to get from 100 till 200 ?

Best Regards,
Youssef

Originally created by @yboujraf on GitHub (Sep 11, 2020). Original GitHub issue: https://github.com/moollaza/repo-remover/issues/160 Dear @moollaza I tried to modify the number of repo returned by the query. If more than 100, I got an error. I tried : ``` query($ghLogin:String!){ user(login:$ghLogin) { id name login avatarUrl bioHTML repositories(last:100, ownerAffiliations: [OWNER, ORGANIZATION_MEMBER, COLLABORATOR]) { nodes { id viewerCanAdminister name description isFork isPrivate isArchived updatedAt url parent { nameWithOwner url } owner { login url } } } } } ``` I got the last 100 repositories. But finally, how to get from 100 till 200 ? Best Regards, Youssef
kerem closed this issue 2026-02-26 04:36:29 +03:00
Author
Owner

@moollaza commented on GitHub (Sep 12, 2020):

Duplicate of #138

<!-- gh-comment-id:691543310 --> @moollaza commented on GitHub (Sep 12, 2020): Duplicate of #138
Author
Owner

@moollaza commented on GitHub (Sep 12, 2020):

@yboujraf the API is limited to returning at most 100 repos per page. To get more than 100 results, we need to implement a check for additional pages of results.

<!-- gh-comment-id:691543367 --> @moollaza commented on GitHub (Sep 12, 2020): @yboujraf the API is limited to returning at most 100 repos per page. To get more than 100 results, we need to implement a check for additional pages of results.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/repo-remover-moollaza#8
No description provided.