Queries
No description.
customer
Section titled “customer”Customer
The signed-in buyer, and the only way to reach anything they own.
Null when no Authorization header was sent — render the sign-in page. A
header that was sent and rejected raises UNAUTHENTICATED instead, which
means refresh the token rather than sign in again.
provinces
Section titled “provinces”[Province!]!
Every Iranian province — استان.
Here as well as on the Storefront API because the address book needs the same picker checkout does, and a signed-in buyer editing an address should not have to hold two tokens to fill one form.
cities
Section titled “cities”[City!]!
The cities of one province — شهر.
query filters by name for a type-ahead. Requires a province: the national
list runs to thousands and no address form needs it whole.
| Argument | Type | Meaning |
|---|---|---|
provinceCode | String! | No description. |
query | String | No description. |
Node
Re-fetch any object by its id.
Scoped to the signed-in buyer: an id belonging to somebody else returns null rather than an error, because saying “that exists but is not yours” confirms it exists.
| Argument | Type | Meaning |
|---|---|---|
id | ID! | No description. |
[Node]!
Re-fetch several. Positional: null holds the place of anything unreachable.
| Argument | Type | Meaning |
|---|---|---|
ids | [ID!]! | No description. |