Hey @jaredsmith, thanks for the questions. I’ll try to answer them as best I can.

jaredsmith:

If I have two tokens associated with my account, which one gets used from the GraphQL explorer?

Because the GraphQL explorer is an OAuth application, it keeps track of tokens on its own. So, short answer, neither of the tokens you see associated with your account is used. It’s another token generated by the OAuth application.

jaredsmith:

Could this error be happening because I’m not an organizational admin on all the orgs I belong to? Do I really need to be an org admin to read the name of the org?

I actually think this is just a bug on our end; I believe we should only be requiring the read:org scope to… well… read org data

We’re tracking this internally and have a better answer for you soon. Thanks again!

Sorry about the early close @jaredsmith, we’re still getting used to this new forum : ).

I’m not sure why that’s the case. I just verified the same query with my own account and a test account and was able to get more than one organization back.

One thing that might be causing a little confusion is that you’re aliasing the organization edges to the name “repos”, and the node to “repo”. While this won’t affect the data being returned from the query, it will modify the structure. If you’re looking to get the organization’s repositories, you may want something that looks like this:

As for the issue of only having one organization returned, is it possible you’re authenticated into the GitHub GraphQL Explorer as a different user that doesn’t have access to the organizations you expect?

Yes, I understand that my aliases didn’t really match up with what I was actually pulling. Those aliases were just leftovers from testing with repo objects instead of org objects, so we can ignore them for now.

I ran your example above, and I’m still only showing the first three repositories for just one organization (“Fedora Cloud SIG”), even though you can see from my Github profile (https://github.com/jaredsmith) that I’m associated with three organizations. And I only have one Github account, and I’m definitely logged in with that account.