# nodeDataType

Audience: Developer

Fetches an object given its ID.

Fetches an object given its ID.

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

## Arguments

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

## Returns

[NodeDataType](https://docs.pyck.cloud/dev/api/interfaces/nodedatatype.md)

## Example

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

```graphql
query GetNodeDataType($id: ID!) {
  nodeDataType(id: $id) {
    id
    ... on DataType {
      tenantID
      name
      slug
      entity
      version
    }
  }
}
```

**Variables**

```json
{
  "id": "<data type ID>"
}
```
