---
title: RelationshipDirected type | Wartiva GraphQL API
description: A Relationship paired with the RelationshipDirection in which it is traversed from a particular graph object type.
url: https://wartiva.com/api-docs/types/relationship-directed.html
updated: 2026-10-07
---

Graph search · GraphQL type

# `RelationshipDirected` type

A [Relationship](https://wartiva.com/api-docs/types/relationship.html) paired with the [RelationshipDirection](https://wartiva.com/api-docs/types/relationship-direction.html) in which it is traversed from a particular graph object type.

## Fields

| Field Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | Stable identifier for the directed relationship, used to reference it from search queries. |
| `relationship` - [`Relationship!`](https://wartiva.com/api-docs/types/relationship.html) | The underlying [Relationship](https://wartiva.com/api-docs/types/relationship.html) — source and target object types, label, cardinality, and options. |
| `direction` - [`RelationshipDirection!`](https://wartiva.com/api-docs/types/relationship-direction.html) | The direction in which the relationship is traversed. |
| `directionLabel` - [`String!`](https://wartiva.com/api-docs/types/string.html) | A human friendly label for the relationship verb in the configured traversal direction — the forward verb when SOURCE_TO_TARGET, or the inverse verb when TARGET_TO_SOURCE (e.g. "installed on" vs "installs"). |
| `labelFromSource` - [`String!`](https://wartiva.com/api-docs/types/string.html) | A human friendly label describing the portion of the relationship that follows the source object — the verb phrase plus the directed target's [GraphObjectType](https://wartiva.com/api-docs/types/graph-object-type.html) label (e.g. "installed on Endpoint" when SOURCE_TO_TARGET, or "installs Application" when TARGET_TO_SOURCE). |
| `label` - [`String!`](https://wartiva.com/api-docs/types/string.html) | A human friendly label. |

## Used by

- [`GraphObjectTypeInfo`](https://wartiva.com/api-docs/types/graph-object-type-info.html) type: Describes a single graph object type: its enum value, the relationships it participates in, and the properties available for use in search query…
- [`GraphRelationshipSearchInput`](https://wartiva.com/api-docs/types/graph-relationship-search-input.html) input: A relationship constraint applied to a GraphSearchQueryInput: match objects that have (or, when negated, do not have) a relationship to other…
- [`GraphRelationshipSearchInputPayload`](https://wartiva.com/api-docs/types/graph-relationship-search-input-payload.html) type: Output mirror of GraphRelationshipSearchInput used when an executed query is returned as a field on another type.

## Example

### Example

```json
{
  "id": "4",
  "relationship": Relationship,
  "direction": "SOURCE_TO_TARGET",
  "directionLabel": "xyz789",
  "labelFromSource": "xyz789",
  "label": "xyz789"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
