# nodesFile

Audience: Programmer

Lookup nodes by a list of IDs.

Lookup nodes by a list of IDs.

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

## Arguments

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

## Returns

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

## Example

Fetches several files 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 GetNodesFile($ids: [ID!]!) {
  nodesFile(ids: $ids) {
    id
    ... on File {
      tenantID
      name
      contentType
      refid
      createdAt
    }
  }
}
```

**Variables**

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