Skip to content

addressResolve

Queryin Address suggest

The full address behind a suggestion. Null when the suggestion no longer resolves, or the source is unavailable.

Arguments

ArgumentTypeDescription
idID!
sessionString

Returns

AddressLookupMatch

FieldTypeDescription
streetAddressString!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
streetNameString!
streetNumberStringNull for an address without a separate house number
streetNumberSuffixStringThe addition to the house number, such as a letter or a unit, when it has one
postalCodeString!
cityString!
countryCountryCode!

Example

query AddressResolve($id: ID!, $session: String) {
addressResolve(id: $id, session: $session) {
streetAddress
streetName
streetNumber
streetNumberSuffix
postalCode
city
country
}
}

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: