---
title: SearchQuerySchemaKeyUnion type | Wartiva GraphQL API
description: A polymorphic data structure that can be represented by a list of possible structs. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/search-query-schema-key-union.html
updated: 2026-10-07
---

Graph search · GraphQL type

# `SearchQuerySchemaKeyUnion` type

A polymorphic data structure that can be represented by a list of possible structs.

## Fields

| Field Name | Description |
|---|---|
| `keyType` - [`SearchQuerySchemaKeyType!`](https://wartiva.com/api-docs/types/search-query-schema-key-type.html) | Discriminator identifying this key as a union. Always [SearchQuerySchemaKeyType](https://wartiva.com/api-docs/types/search-query-schema-key-type.html).UNION. |
| `name` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The type name of the union as referenced elsewhere in the schema. |
| `description` - [`String!`](https://wartiva.com/api-docs/types/string.html) | Description for display to end users. |
| `memberNames` - [`[String!]!`](https://wartiva.com/api-docs/types/string.html) | The type names that can possibly represent this union to be used to lookup in the schema. |

## Example

### Example

```json
{
  "keyType": "STRUCT",
  "name": "abc123",
  "description": "xyz789",
  "memberNames": ["xyz789"]
}

```

---

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