---
title: "oneOf"
url: "https://altiumdeveloper.github.io/platform-api-docs/reference/common/types/directives/one-of"
bounded_context: "Common"
kind: "directives"
experimental: false
deprecated: false
---

# oneOf

The `@oneOf` directive is used within the type system definition language to indicate:

- an Input Object is a Oneof Input Object, or
- an Object Type's Field is a Oneof Field.

```graphql
directive @oneOf on INPUT_OBJECT
```
