Is there a way to get the ID of multiple users at the same time


#1

So I’m trying to get the ID of a number of users using the GraphQL API in order to then add them as reviewers. I Can’t find a way to do that better than:

query {
  user1:user(login:"wpt-pr-bot") {
    login
    id
  }
  user2:user(login:"specworker") {
    login
    id
  }
  user3:user(login:"tobie") {
    login
    id
  }
  # etc.
}

Is there a better way? E.g. something like:

query {
  users(logins: ["wpt-pr-bot", "specworker", "tobie"]) {
    login
    id
  }
}

#2

Wondering the same, any update?