Skip to content

GraphQL: can't get repository by name #24789

Discussion options

You must be logged in to vote

Thanks for reaching out.

When querying for a repository object, even when you specify viewer, you have to give both the name and owner of the repository you want returned. The reason for this is that I, as a viewer, may have access to both the atom/atom repository and the lee-dohm/atom repository, so specifying atom by itself is ambiguous.

I hope that helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants