Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: mchammer01 <42146119+mchammer01@users.noreply.github.com>
26 lines
714 B
Markdown
26 lines
714 B
Markdown
---
|
|
title: Enums
|
|
redirect_from:
|
|
- /v4/enum
|
|
- /v4/reference/enum
|
|
versions:
|
|
fpt: '*'
|
|
ghec: '*'
|
|
ghes: '*'
|
|
ghae: '*'
|
|
topics:
|
|
- API
|
|
---
|
|
|
|
## About enums
|
|
|
|
[Enums](https://graphql.github.io/graphql-spec/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 "[Introduction to GraphQL](/graphql/guides/introduction-to-graphql)."
|
|
|
|
{% data reusables.projects.graphql-ghes %}
|
|
|
|
<!-- Content after this section is automatically generated -->
|