---
title: GraphSearchAutocompleteReplacement type | Wartiva API
description: The replacement for the query string to use when an autocomplete option is selected by the user. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/graph-search-autocomplete-replacement.html
updated: 2026-10-07
---

Graph search · GraphQL type

# `GraphSearchAutocompleteReplacement` type

The replacement for the query string to use when an autocomplete option is selected by the user.

## Fields

| Field Name | Description |
|---|---|
| `text` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The replacement query string. This string should completely replace the existing query string. |
| `position` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The new position or offset of the cursor in the replacement text counting UTF-8 characters (runes). |

## Used by

- [`GraphSearchAutocomplete`](https://wartiva.com/api-docs/types/graph-search-autocomplete.html) type: One autocomplete completion option.
- [`GraphSearchAutocompleteInput`](https://wartiva.com/api-docs/types/graph-search-autocomplete-input.html) input: Graph search autocomplete input parameters.
- [`GraphSearchAutocompleteKey`](https://wartiva.com/api-docs/types/graph-search-autocomplete-key.html) type: One autocomplete completion option for a key in a key value expression.

## Example

### Example

```json
{"text": "xyz789", "position": 987}

```

---

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