# Enumerations

An enumeration (or enum for short) can be used to group values within a type. Enums can be useful to filter, and define certain content entries in your project.

## Overview

An enumeration (or enum for short) can be used to group values within a type. Enums can be useful to filter, and define certain content entries in your project.

For example, a product model may contain the enum `COMMODITY`, and values `Digital` and `Physical`.

Enums values can only contain alphanumeric characters, and underscores.

Learn more about [Enumerations](https://hygraph.com/docs/api-reference/schema/field-types#enumerations).

## Fetching enumeration values

You may want to fetch all possible values of an Enum you have created. You can do this via GraphQL using your projects API endpoint.

```graphql
{
  __type(name: "COMMODITY") {
    enumValues {
      name
    }
  }
}
```

## Enumerations in the UI

- [Create an enumeration](https://hygraph.com/docs/developer-guides/schema/using-enumerations#create-an-enumeration)
- [Use the demo enumeration](https://hygraph.com/docs/developer-guides/schema/using-enumerations#use-demo-enumeration)
- [Delete an enumeration](https://hygraph.com/docs/developer-guides/schema/using-enumerations#delete-an-enumeration)
- [Add an enumeration to a model](https://hygraph.com/docs/developer-guides/schema/using-enumerations#add-an-enumeration-to-a-model)
