Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

Q: How to use GraphQL to find only repositories owned by organizations?

Does anyobody know if it is possible to query Github with GraphQL and only display repositories that are owned by organizations?

1 Reply
Community Manager
Message 2 of 2

Re: Q: How to use GraphQL to find only repositories owned by organizations?

Hey @Ranicki69,

 

Thanks for being here! Something like this should work:

{
  organization(login: atom) {
      repositories(first: 50) {
        nodes {
          name
        }
        pageInfo {
          hasNextPage
        }
      }
    }
  }

Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!