Adobe Commerce only. Learn more.

giftRegistryEmailSearch query

The giftRegistryEmailSearch query returns a list of gift registries that match the specified registrant email address. The query does not return registries based on owner email address.

Syntax

1
giftRegistryEmailSearch(email: String!): [GiftRegistrySearchResult]

Example usage

The following example returns details about gift registries in which staceyg@example.com is a registrant.

Request:

1
2
3
4
5
6
7
8
9
query{
  giftRegistryEmailSearch(email: "staceyg@example.com"){
    event_date
    event_title
    gift_registry_uid
    name
    type
  }
}

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "data": {
    "giftRegistryEmailSearch": [
      {
        "event_date": "2021-01-28",
        "event_title": "Theo's 45th Birthday",
        "gift_registry_uid": "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
        "name": "Stacey Gaines",
        "type": "Birthday"
      }
    ]
  }
}

Input attributes

The giftRegistryEmailSearch query requires the email attribute as input.

Attribute Data Type Description
email String The registrant’s email address

Output attributes

The GiftRegistrySearchResult object returns the following attributes:

Attribute Data Type Description
event_date String The date of the event
event_title String! The title given to the event
gift_registry_uid ID! The URL key of the gift registry
location String The location of the event
name String! The name of the registrant
type String The type of event being held