GraphQL: can't get repository by name #24789
Answered
by
lee-dohm
ahaessly
asked this question in
API and Webhooks
-
I can get the name for a repository
but if I try to get that repository by name, it returns null
|
Beta Was this translation helpful? Give feedback.
Answered by
lee-dohm
Feb 26, 2019
Replies: 2 comments
-
Thanks for reaching out. When querying for a repository object, even when you specify I hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
Please provide example query of how this is done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reaching out.
When querying for a repository object, even when you specify
viewer
, you have to give both thename
andowner
of the repository you want returned. The reason for this is that I, as a viewer, may have access to both theatom/atom
repository and thelee-dohm/atom
repository, so specifyingatom
by itself is ambiguous.I hope that helps!