Adobe Commerce only. Learn more
giftRegistryTypes query
The giftRegistryTypes
query returns a list of available gift registry types.
Syntax
Copied to your clipboardgiftRegistryTypes: [GiftRegistryType]
Reference
The giftRegistryTypes
reference provides detailed information about the types and fields defined in this query.
Example usage
The following example returns information about the list of available gift registry types.
Request:
Copied to your clipboardquery{giftRegistryTypes{labeluiddynamic_attributes_metadata {labelinput_typeis_requiredcode}}}
Response:
Copied to your clipboard{"data": {"giftRegistryTypes": [{"label": "Birthday","uid": "MQ==","dynamic_attributes_metadata": [{"label": "Country","input_type": "country","is_required": true,"code": "event_country"},{"label": "Event Date","input_type": "date","is_required": true,"code": "event_date"}]},{"label": "Baby Registry","uid": "Mg==","dynamic_attributes_metadata": [{"label": "Role","input_type": "select","is_required": true,"code": "role"},{"label": "Country","input_type": "country","is_required": true,"code": "event_country"},{"label": "Baby Gender","input_type": "select","is_required": true,"code": "baby_gender"}]},{"label": "Wedding","uid": "Mw==","dynamic_attributes_metadata": [{"label": "Role","input_type": "select","is_required": true,"code": "role"},{"label": "Country","input_type": "country","is_required": true,"code": "event_country"},{"label": "Wedding Date","input_type": "date","is_required": true,"code": "event_date"},{"label": "Location","input_type": "text","is_required": true,"code": "event_location"},{"label": "Number of Guests","input_type": "text","is_required": true,"code": "number_of_guests"}]}]}}