query RepositoryByNameAndOwner($owner: String!, $name: String!) {
  nodes(owner: $owner, name: $name) {
    ... on Repository {
      id
    }
  }
}


Fix query name for repo lookup
query RepositoryByNameAndOwner($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    ... on Repository {
      id
    }
  }
}