# node

Audience: Developer

Fetches an object given its ID.

Fetches an object given its ID.

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `id` | ID! | ID of the object. |

## Returns

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

## Example

Fetches one customer by its global ID. The inline fragment selects the Customer fields; the lookup returns null when no object has that ID.

```graphql
query GetNode($id: ID!) {
  node(id: $id) {
    id
    ... on Customer {
      tenantID
      dataTypeSlug
      data
      createdAt
    }
  }
}
```

**Variables**

```json
{
  "id": "<customer ID>"
}
```
