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.
#Fetching enumeration valuesYou may want to fetch all possible values of an Enum you have created. You can do this via GraphQL using your projects API endpoint.
#Enumerations in the UI{
__type(name: "COMMODITY") {
enumValues {
name
}
}
}
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