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

# oneOf

Indicates exactly one field must be supplied and this field must not be `null`.

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