# nodeWorkflow

Audience: Developer

Fetches an object given its ID.

Fetches an object given its ID.

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

## Arguments

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

## Returns

[NodeWorkflow](https://docs.pyck.cloud/api/interfaces/nodeworkflow.md)

## Example

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

```graphql
query GetNodeWorkflow($id: ID!) {
  nodeWorkflow(id: $id) {
    id
    ... on Workflow {
      tenantID
      name
      taskQueue
      createdAt
    }
  }
}
```

**Variables**

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