Edit in GitHubLog an issue
Adobe Commerce only. Learn more
Thanks to Zilker Technology for contributing this topic!

giftRegistryTypes query

The giftRegistryTypes query returns a list of available gift registry types.

Syntax

Copied to your clipboard
giftRegistryTypes: [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 clipboard
query{
giftRegistryTypes{
label
uid
dynamic_attributes_metadata {
label
input_type
is_required
code
}
}
}

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"
}
]
}
]
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.