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

API v4 GraphQL Retrieve RepositoryInvitation?

Solved! Go to Solution.

I am probably missing something obvious but, I cannot seem to construct an equivalent GraphQL query to retrieve a list of users for a repository as seen in the version 3 API.

 

I have taken a look at the schema and can see the relevant type 'RepositoryInvitation' but I cannot seem to find the relevant fields that result in this information being retrieved from a query or specifically the query below.

 

{
  viewer {
    organization(login: "<name>") {
      repositories(first: 5) {
        edges {
          node {
            collaborators(first: 5) {
              edges {
                node {
                  login
                }
              }
            }
            name
          }
        }
      }
      login
    }
    login
  }
}

 

3 Replies
Solution
Community Manager
Message 2 of 4

Re: API v4 GraphQL Retrieve RepositoryInvitation?

As of right now, there isn't a method to retrieve the information you're asking for via the v4 API. You'll need to continue to use the v3 API for now.

 

I hope that helps!

Copilot Lvl 2
Message 3 of 4

Re: API v4 GraphQL Retrieve RepositoryInvitation?

No problem, thank you for clarifying.

The existence of the data type had me confused.

Copilot Lvl 2
Message 4 of 4

Re: API v4 GraphQL Retrieve RepositoryInvitation?

Me too.Thanks,and have a great day today!