---
title: GraphRelationshipSearchInput input | Wartiva GraphQL API
description: A relationship constraint applied to a GraphSearchQueryInput: match objects that have. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/graph-relationship-search-input.html
updated: 2026-10-07
---

Graph search · GraphQL input

# `GraphRelationshipSearchInput` input

A relationship constraint applied to a [GraphSearchQueryInput](https://wartiva.com/api-docs/types/graph-search-query-input.html): match objects that have (or, when negated, do not have) a relationship to other objects matching the nested query.

## Fields

| Input Field | Description |
|---|---|
| `directedRelationshipId` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The identifier of the [RelationshipDirected](https://wartiva.com/api-docs/types/relationship-directed.html) being traversed. Encodes both the underlying relationship and the direction in which it is traversed. |
| `with` - [`GraphSearchQueryInput!`](https://wartiva.com/api-docs/types/graph-search-query-input.html) | The nested query that describes the objects on the other side of the relationship. |
| `negate` - [`Boolean!`](https://wartiva.com/api-docs/types/boolean.html) | When true the constraint matches objects that do not have the specified relationship. Defaults to false when omitted. Default = `false` |

## Used by

- [`GraphSearchQueryInput`](https://wartiva.com/api-docs/types/graph-search-query-input.html) input: Specifies the search criteria for a single graph query: the object type to return, optional time and location filters, relationship constraints, the…
- [`RuleBodyThresholdInput`](https://wartiva.com/api-docs/types/rule-body-threshold-input.html) input: Input variant of RuleBodyThreshold.

## Example

### Example

```json
{
  "directedRelationshipId": "4",
  "with": GraphSearchQueryInput,
  "negate": false
}

```

---

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