Get status data for list of GitHub logins (users) using GraphQL in efficent way

What I would like to do is to get specific data from Status for a group of 10-40 GitHub users from the organization. I would like to get the data in one batch. Currently, my solution queries the data using for loop in the code and a query below:

{
    user(login: "user1") {
    status {
         indicatesLimitedAvailability
         updatedAt
         createdAt
}

The disadvantage of this solution is I have to use sleep not to trigger API calls per minute limit in GitHub.

Would it be possible to transform the query to something like this (pseudocode):

{
    user(login: "user1", "user2", "user3", ...) {
    status {
         indicatesLimitedAvailability
         updatedAt
         createdAt
}

And some kind of list in the response?

Read more here: Source link