# nodesInventory

Audience: Programmer

Lookup nodes by a list of IDs.

Lookup nodes by a list of IDs.

**Served by:** [inventory](https://docs.pyck.cloud/latest/api/services/inventory.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `ids` | \[ID!\]! |  | The list of node IDs. |

## Returns

\[[NodeInventory](https://docs.pyck.cloud/latest/api/interfaces/nodeinventory.md)\]!

## Example

Fetches several inventory items by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.

```graphql
query GetNodesInventory($ids: [ID!]!) {
  nodesInventory(ids: $ids) {
    id
    ... on InventoryItem {
      tenantID
      sku
      dataTypeSlug
      data
      createdAt
    }
  }
}
```

**Variables**

```json
{
  "ids": [
    "<inventory item ID>"
  ]
}
```
