> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Using global node IDs

> Look up any object in the Arize AX GraphQL API directly by its globally unique node ID, using the node field and an inline fragment on its object type.

In the Arize AX GraphQL API, all nodes (entities) have a globally unique ID. This is a very powerful tool to quickly query and mutate parts of your account.

## Putting global node IDs to use

You can follow three steps to use global node IDs effectively:

1. Navigate to a `node` you would like to query in the app (e.x. `/spaces/:space_node_id`)

2. Find the object's type in GraphQL.

3. Use the ID and type to do a direct node lookup in GraphQL.

Let's walk through an example.

### 1. Navigate to a model

You will notice your URL will contain a model node id like `/models/MDQ6VXNlcjU4MzIzMQ==` (Note you can always query for your models but this can sometimes be the easiest way to get started). The value after `models/` is the model's globally unique node ID.

### 2. Finding the object type in GraphQL

In this example, the `node_id` value is `MDQ6VXNlcjU4MzIzMQ==`. You can use this value to query the same object in GraphQL.

You'll need to know the object's *type* first, though (even though we already sort of know it's a `Model`). You can check the type with a simple GraphQL query:

```javascript theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
query {
  node(id: "MDQ6VXNlcjU4MzIzMQ==") {
     __typename
  }
}
```

This type of query, that is, finding the node by ID, is known as a "direct node lookup."

When you run this query, you'll see that the `__typename` is `Model`

### 3. Do a direct node lookup in GraphQL

Once you've confirmed the type, you can use an [inline fragment](https://graphql.org/learn/queries/#inline-fragments) to access the object by its ID and return additional data. In this example, we define the fields on `Model` that we'd like to query:

```javascript theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
query {
  node(id: "MDQ6VXNlcjU4MzIzMQ==") {
   ... on Model {
      modelType
    }
  }
}
```

This type of query is the standard approach for looking up an object by its global node ID.

You can now execute interesting queries about this node (a.k.a. `Model`) and make use of this ID in mutations (e.x. creating a performance monitor).

> [!NOTE]
>
> Having trouble? Reach out to us via email [support@arize.com](mailto:support@arize.com) or [Slack us](https://arize-ai.slack.com/) in the #arize-support channel for more support.
