A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://graphcms.com/docs/api-reference/schema/enumerations below:

Enumerations | Hygraph

#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.

#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.

{

__type(name: "COMMODITY") {

enumValues {

name

}

}

}

#Enumerations in the UI

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