Adobe Commerce only. Learn more
giftRegistryTypeSearch query
The giftRegistryTypeSearch
query returns a list of gift registries that match the specified registrant name and, optionally, registry type ID. Use the giftRegistryTypes
query to return list of registry type IDs.
Syntax
Copied to your clipboardgiftRegistryTypeSearch(firstName: String!lastName: String!giftRegistryTypeUid: String): [GiftRegistrySearchResult]
Reference
The giftRegistryTypeSearch
reference provides detailed information about the types and fields defined in this query.
Example usage
The following example returns all gift registries in which the specified person is a registrant.
Request:
Copied to your clipboardquery{giftRegistryTypeSearch(firstName: "Stacey", lastName: "Gaines"){event_dateevent_titlegift_registry_uidnametype}}
Response:
Copied to your clipboard{"data": {"giftRegistryTypeSearch": [{"event_date": "2021-01-28","event_title": "Theo's 45th Birthday","gift_registry_uid": "W9YcRai9JmzGglqP3p0USodTTM3BmjjY","name": "Stacey Gaines","type": "Birthday"}]}}