For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get values of custom fields

Example query on how to get values of custom fields options

fragment Option on Option {
    code
    name(languages: ["en_US"]) {
        value
        language
    }
    customFields {
        __typename
        customField {
            code
        }
        translations(languages: ["en_US"]) {
            language
            ... on ImageCustomFieldValueTranslation {
                imageCustomFieldValue: value {
                    path
                }
            }
            ... on TextCustomFieldValueTranslation {
                textCustomFieldValue: value
            }
            ... on TextareaCustomFieldValueTranslation {
                textareaCustomFieldValue: value
            }
            ... on TextareaRTECustomFieldValueTranslation {
                textareaRTECustomFieldValue: value
            }
        }
    }
}

Last updated

Was this helpful?