1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/graphql/reference/enums.md

25 lines
711 B
Markdown

---
title: Enums
intro: Enums represent possible sets of values for a field.
redirect_from:
- /v4/enum
- /v4/reference/enum
versions:
fpt: '*'
ghec: '*'
ghes: '*'
topics:
- API
autogenerated: graphql
---
## About enums
[Enums](https://spec.graphql.org/June2018/#sec-Enums) represent possible sets of values for a field.
For example, the [`Issue`](/graphql/reference/objects#issue) object has a field called `state`. The state is an enum (specifically, of type [`IssueState`](/graphql/reference/enums#issuestate)) because it may be `OPEN` or `CLOSED`.
For more information, see [AUTOTITLE](/graphql/guides/introduction-to-graphql).
<!-- Content after this section is automatically generated -->