Get values of custom fields

Example query on how to get values of custom fields options

fragment Option on Option {
    code
    name {
        value
        language
    }
    customFields {
        __typename
        customField {
            code
        }
        translations {
            language
            ... on ImageCustomFieldValueTranslation {
                imageCustomFieldValue: value {
                    path
                }
            }
            ... on TextCustomFieldValueTranslation {
                textCustomFieldValue: value
            }
            ... on TextareaCustomFieldValueTranslation {
                textareaCustomFieldValue: value
            }
            ... on TextareaRTECustomFieldValueTranslation {
                textareaRTECustomFieldValue: value
            }
        }
    }
}

Last updated