Calling Graphql inventory items API dynamically by passing multiple inventory item id's

Hi Team,

The following is used to get the first inventory item IDs using graphql inventory items API. Still, we need to know how we can achieve the functionality to get multiple inventory item IDs using the InventoryItems API.

query inventoryItems {
inventoryItems(first: 2) {
edges {
node {
id
tracked
sku
inventoryLevels(first:10){
edges{
node{
id
quantities(names: [“available”, “incoming”,“committed”]) {
name
quantity
}
location {
id
name
}
}
}
}
}
}
}
}