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


Add owner ID to repository lookup
query RepositoryByNameAndOwner($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    ... on Repository {
      id
      owner {
        id
      }
    }
  }
}