Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Queries

No description.

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.

[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.

[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.

ArgumentTypeMeaning
provinceCodeString!No description.
queryStringNo 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.

ArgumentTypeMeaning
idID!No description.

[Node]!

Re-fetch several. Positional: null holds the place of anything unreachable.

ArgumentTypeMeaning
ids[ID!]!No description.