query GhObject($owner: String!, $name: String!, $expression: String!) { repository(owner: $owner, name: $name) { object(expression: $expression) { __typename ... on Tree { entries { type name } } ... on Blob { text } } } }