An enumeration is a predefined set of values that represents a list of possible options.
#What you can doYou can use enumerations to group values within a type.
You can use enumerations to create a list of values and add it to a model. The values can then be selected from a dropdown menu in the content creation screen.
Create an enumeration
+ Add
next to Enumerations on the Schema list, or the + Add Enumerations
button located at the center of the screen. The New enumeration screen will display as a result.Display name
field with the name that will be displayed in Hygraph. The API ID
field will be autocompleted when you complete the Display name
, but you can edit this value. The API ID is the ID for accessing this enumeration through the API.Description
.Display name
, which autocompletes the API ID
field, and then clicking + Add
. Your values will display on a list below.Add Enumeration
at the bottom of the screen to finish the process.Create an enumeration
Add demo enumeration
, located at the center of the screen.Delete an enumeration
Delete
option, then click on it to delete the enumeration.Add an enumeration to a model
Display name
field. This will autocomplete the API ID
field, but you can edit this value if you want.Enumeration
dropdown to select the enumeration you want to add to this model.Description
.Field options
section of the screen.Add
to save.After an enumeration has been configured for your model, you will be able to use it in the content editor.
Use an enumeration in a content entry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4