addressResolve
The full address behind a suggestion. Null when the suggestion no longer resolves, or the source is unavailable.
Arguments
| Argument | Type | Description |
|---|---|---|
id | ID! | |
session | String |
Returns
| Field | Type | Description |
|---|---|---|
streetAddress | String! | The first address line as the country writes it, street and number together, for a country whose addresses do not split into the fields below |
streetName | String! | |
streetNumber | String | Null for an address without a separate house number |
streetNumberSuffix | String | The addition to the house number, such as a letter or a unit, when it has one |
postalCode | String! | |
city | String! | |
country | CountryCode! |
Example
query AddressResolve($id: ID!, $session: String) { addressResolve(id: $id, session: $session) { streetAddress streetName streetNumber streetNumberSuffix postalCode city country }}{ "id": "id-1", "session": "Example"}{ "data": { "addressResolve": { "streetAddress": "Example", "streetName": "Example", "streetNumber": "Example", "streetNumberSuffix": "Example", "postalCode": "Example", "city": "Example", "country": "NL" } }}The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/commerce-ui:
CommerceAddressResolve

