---
title: RelationshipDirection enum | Wartiva GraphQL API
description: The direction in which a Relationship is traversed: from source to target, or inverted. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/relationship-direction.html
updated: 2026-10-07
---

Graph search · GraphQL enum

# `RelationshipDirection` enum

The direction in which a [Relationship](https://wartiva.com/api-docs/types/relationship.html) is traversed: from source to target, or inverted.

## Values

| Enum Value | Description |
|---|---|
| `SOURCE_TO_TARGET` | Traverse the relationship from source to target. |
| `TARGET_TO_SOURCE` | Traverse the relationship from target to source. |

## Used by

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

## Example

### Example

```json
"SOURCE_TO_TARGET"

```

---

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