Grapql viewer repositories retrieving only repositories where use is collaborator

AFAIK the following query should retrieve the repositories where user is owner, colaborator or have access as an organization member, unfortunably is retriving only the repositories where user is COLLABORATOR.

{
  viewer {
    name
    repositories(first: 100,  affiliations: [OWNER, COLLABORATOR, ORGANIZATION_MEMBER]) {
      edges {
        node {
          id
          name
        }
      }
    }
  }
}

some other people report this already, check

https://platform.github.community/t/viewer-repositories-endpoint-not-showing-all-repos/3527

Hi @jcamiloradamesa,

Are you using a personal Github access token?

Hey I am using github grapql explorer https://developer.github.com/v4/explorer/.

Hey @jcamiloradamesa,

I think this is a bug, I’ve reported it and will update this thread when we have some answers.

Thanks!

Andrea

1 Like