# nodes

Audience: Developer

Lookup nodes by a list of IDs.

Lookup nodes by a list of IDs.

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

## Arguments

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

## Returns

\[[Node](https://docs.pyck.cloud/dev/api/interfaces/node.md)\]!

## Example

Fetches several customers 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 GetNodes($ids: [ID!]!) {
  nodes(ids: $ids) {
    id
    ... on Customer {
      tenantID
      dataTypeSlug
      data
      createdAt
    }
  }
}
```

**Variables**

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