Catalogue
Collection
Section titled “Collection”A group of products a merchant put together — دستهبندی.
Membership is either a list the merchant curates or a rule the platform evaluates. Both are the same object, because a storefront asking “what is in this collection” should not have to know which.
ID!
No description.
version
Section titled “version”Version!
No description.
handle
Section titled “handle”Handle!
No description.
String!
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
No description.
Image
No description.
membership
Section titled “membership”CollectionMembership!
How membership is decided.
[CollectionRule!]!
The rules, when membership is AUTOMATIC. Empty otherwise.
rulesMatch
Section titled “rulesMatch”CollectionRulesMatch!
Whether a product must match every rule or any of them.
products
Section titled “products”ProductConnection!
No description.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
sortKey | CollectionProductSortKeys · default "MANUAL" | No description. |
productCount
Section titled “productCount”Int!
No description.
sortOrder
Section titled “sortOrder”CollectionProductSortKeys!
The order products appear on the storefront, when the merchant set one.
publications
Section titled “publications”[Publication!]!
No description.
SEO!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
metafield
Section titled “metafield”Metafield
No description.
| Argument | Type | Meaning |
|---|---|---|
namespace | String | No description. |
key | String! | No description. |
metafields
Section titled “metafields”[Metafield]!
No description.
| Argument | Type | Meaning |
|---|---|---|
identifiers | [MetafieldIdentifier!]! | No description. |
CollectionAdminSortKeys
Section titled “CollectionAdminSortKeys”How a collection listing is ordered.
| Value | Meaning |
|---|---|
TITLE | No description. |
UPDATED_AT | No description. |
PRODUCT_COUNT | No description. |
CollectionConnection
Section titled “CollectionConnection”A page of collections.
[CollectionEdge!]!
No description.
[Collection!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
CollectionCreateInput
Section titled “CollectionCreateInput”A new collection.
String!
No description.
handle
Section titled “handle”Handle
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
No description.
membership
Section titled “membership”CollectionMembership
No description.
[CollectionRuleInput!]
No description.
rulesMatch
Section titled “rulesMatch”CollectionRulesMatch
No description.
sortOrder
Section titled “sortOrder”CollectionProductSortKeys
No description.
SEOInput
No description.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
publishToChannelIds
Section titled “publishToChannelIds”[ID!]
No description.
CollectionEdge
Section titled “CollectionEdge”One collection, with its cursor.
cursor
Section titled “cursor”String!
No description.
Collection!
No description.
CollectionMembership
Section titled “CollectionMembership”How a collection decides what is in it.
| Value | Meaning |
|---|---|
MANUAL | The merchant adds and removes products by hand. |
AUTOMATIC | The platform evaluates rules; membership changes as products change. |
CollectionPayload
Section titled “CollectionPayload”What the collection mutations return.
collection
Section titled “collection”Collection
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
CollectionProductSortKeys
Section titled “CollectionProductSortKeys”How products are ordered within a collection.
| Value | Meaning |
|---|---|
MANUAL | The merchant’s own arrangement. Only meaningful for a manual collection. |
TITLE | No description. |
PRICE | No description. |
CREATED_AT | No description. |
BEST_SELLING | No description. |
INVENTORY_QUANTITY | No description. |
CollectionRule
Section titled “CollectionRule”One condition on automatic membership.
CollectionRuleField!
No description.
operator
Section titled “operator”CollectionRuleOperator!
No description.
String!
No description.
CollectionRuleField
Section titled “CollectionRuleField”What an automatic-collection rule tests.
| Value | Meaning |
|---|---|
TITLE | No description. |
TYPE | No description. |
VENDOR | No description. |
TAG | No description. |
PRICE | No description. |
COMPARE_AT_PRICE | No description. |
WEIGHT | No description. |
INVENTORY_QUANTITY | No description. |
VARIANT_TITLE | No description. |
CATEGORY | No description. |
METAFIELD | No description. |
CollectionRuleInput
Section titled “CollectionRuleInput”One condition, as supplied.
CollectionRuleField!
No description.
operator
Section titled “operator”CollectionRuleOperator!
No description.
String!
No description.
CollectionRuleOperator
Section titled “CollectionRuleOperator”How a rule compares.
| Value | Meaning |
|---|---|
EQUALS | No description. |
NOT_EQUALS | No description. |
GREATER_THAN | No description. |
LESS_THAN | No description. |
STARTS_WITH | No description. |
ENDS_WITH | No description. |
CONTAINS | No description. |
NOT_CONTAINS | No description. |
IS_SET | No description. |
IS_NOT_SET | No description. |
CollectionRulesMatch
Section titled “CollectionRulesMatch”Whether a product must match every rule or any of them.
| Value | Meaning |
|---|---|
ALL | No description. |
ANY | No description. |
CollectionUpdateInput
Section titled “CollectionUpdateInput”Changes to a collection. Partial; rules replaces wholesale when present.
String
No description.
handle
Section titled “handle”Handle
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
No description.
[CollectionRuleInput!]
No description.
rulesMatch
Section titled “rulesMatch”CollectionRulesMatch
No description.
sortOrder
Section titled “sortOrder”CollectionProductSortKeys
No description.
SEOInput
No description.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
InventoryQuantityInput
Section titled “InventoryQuantityInput”Opening stock for one variant at one location.
locationId
Section titled “locationId”ID!
No description.
onHand
Section titled “onHand”Int!
No description.
JobPayload
Section titled “JobPayload”What a mutation that starts long-running work returns.
Job
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
MediaConnection
Section titled “MediaConnection”A page of media.
[MediaEdge!]!
No description.
[Media!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
MediaEdge
Section titled “MediaEdge”One media item, with its cursor.
cursor
Section titled “cursor”String!
No description.
Media!
No description.
MediaPayload
Section titled “MediaPayload”What the media mutations return.
[Media!]!
No description.
product
Section titled “product”Product
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
Product
Section titled “Product”Something a merchant sells.
ID!
No description.
version
Section titled “version”Version!
No description.
handle
Section titled “handle”Handle!
No description.
String!
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
Rich text, sanitized on write.
vendor
Section titled “vendor”String
No description.
productType
Section titled “productType”String
No description.
[String!]!
No description.
status
Section titled “status”ProductStatus!
Draft products are invisible to every storefront regardless of publication.
Two switches rather than one because they answer different questions: status is “is this finished”, publication is “where does it belong”. A finished product can be published nowhere; an unfinished one published everywhere is still invisible.
publications
Section titled “publications”[Publication!]!
Where this is published, one entry per channel it is on.
featuredMedia
Section titled “featuredMedia”Media
No description.
MediaConnection!
No description.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
options
Section titled “options”[ProductOption!]!
The axes buyers choose along, in presentation order.
variants
Section titled “variants”ProductVariantConnection!
No description.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
last | Int | No description. |
before | String | No description. |
sortKey | ProductVariantSortKeys · default "POSITION" | No description. |
reverse | Boolean · default false | No description. |
variantCount
Section titled “variantCount”Int!
How many variants exist, without paging them.
priceRange
Section titled “priceRange”MoneyRange!
No description.
compareAtPriceRange
Section titled “compareAtPriceRange”MoneyRange
No description.
totalInventory
Section titled “totalInventory”Int
Total stock across every variant and location.
Null when no variant tracks inventory — which is not the same as zero, and an admin that renders it as zero tells the merchant they have nothing to sell.
collections
Section titled “collections”CollectionConnection!
No description.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
category
Section titled “category”TaxonomyCategory
No description.
SEO!
Crawler metadata. Blank fields fall back to the product’s own.
source
Section titled “source”ResourceSource
Where the product came from, when it was not typed in by hand — an Excel import, an Instagram post, a Digikala sync.
Kept because a merchant looking at a wrong price needs to know whether they typed it or a feed did.
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
publishedAt
Section titled “publishedAt”DateTime
No description.
metafield
Section titled “metafield”Metafield
No description.
| Argument | Type | Meaning |
|---|---|---|
namespace | String | No description. |
key | String! | No description. |
metafields
Section titled “metafields”[Metafield]!
No description.
| Argument | Type | Meaning |
|---|---|---|
identifiers | [MetafieldIdentifier!]! | No description. |
ProductAdminFilter
Section titled “ProductAdminFilter”A filter on a product listing in the admin.
status
Section titled “status”[ProductStatus!]
No description.
vendor
Section titled “vendor”String
No description.
productType
Section titled “productType”String
No description.
String
No description.
categoryId
Section titled “categoryId”ID
No description.
publishedOnChannelId
Section titled “publishedOnChannelId”ID
Products published on this channel.
unpublished
Section titled “unpublished”Boolean
Products published nowhere. For finding what a merchant forgot to launch.
inventoryAtOrBelow
Section titled “inventoryAtOrBelow”Int
Stock at or below a threshold, across every location.
missingImages
Section titled “missingImages”Boolean
Products with no image. The single most common catalogue defect.
createdAfter
Section titled “createdAfter”DateTime
No description.
updatedAfter
Section titled “updatedAfter”DateTime
No description.
ProductAdminSortKeys
Section titled “ProductAdminSortKeys”How an admin product listing is ordered.
| Value | Meaning |
|---|---|
TITLE | No description. |
CREATED_AT | No description. |
UPDATED_AT | No description. |
INVENTORY_TOTAL | No description. |
PRODUCT_TYPE | No description. |
VENDOR | No description. |
ProductConnection
Section titled “ProductConnection”A page of products.
[ProductEdge!]!
No description.
[Product!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page. Counted for products, over the whole
filter up to 10000, and a client showing it says “10000 or more”; null for
a collection’s products, which the catalogue lists without counting,
unless this page is the whole result.
ProductCreateInput
Section titled “ProductCreateInput”A new product. title is the only thing required to create one.
Everything else can be filled in later, because a merchant photographing stock on a phone types the name first and the rest afterwards, and a form that refuses to save until it is complete is a form that loses work.
String!
No description.
handle
Section titled “handle”Handle
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
No description.
vendor
Section titled “vendor”String
No description.
productType
Section titled “productType”String
No description.
[String!]
No description.
status
Section titled “status”ProductStatus
No description.
categoryId
Section titled “categoryId”ID
No description.
SEOInput
No description.
options
Section titled “options”[ProductOptionInput!]
Option axes. A product created with none gets one default variant.
variants
Section titled “variants”[ProductVariantCreateInput!]
Variants to create with it. Omit for a single-variant product.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
publishToChannelIds
Section titled “publishToChannelIds”[ID!]
Channels to publish to immediately. Omit to publish nowhere.
ProductEdge
Section titled “ProductEdge”One product, with its cursor.
cursor
Section titled “cursor”String!
No description.
Product!
No description.
ProductOption
Section titled “ProductOption”One axis a buyer chooses along — رنگ, سایز.
ID!
No description.
String!
No description.
position
Section titled “position”Int!
No description.
presentation
Section titled “presentation”ProductOptionPresentation!
How the storefront should render it — swatch, chip, dropdown.
values
Section titled “values”[ProductOptionValue!]!
No description.
ProductOptionInput
Section titled “ProductOptionInput”An option axis as supplied.
String!
No description.
presentation
Section titled “presentation”ProductOptionPresentation
No description.
values
Section titled “values”[ProductOptionValueInput!]!
No description.
ProductOptionPresentation
Section titled “ProductOptionPresentation”How an option is best rendered.
| Value | Meaning |
|---|---|
SWATCH | No description. |
CHIP | No description. |
IMAGE | No description. |
DROPDOWN | No description. |
ProductOptionValue
Section titled “ProductOptionValue”One value on one axis.
ID!
No description.
String!
No description.
swatchColor
Section titled “swatchColor”String
No description.
swatchImage
Section titled “swatchImage”Image
No description.
ProductOptionValueInput
Section titled “ProductOptionValueInput”One value on an axis, as supplied.
String!
No description.
swatchColor
Section titled “swatchColor”String
No description.
swatchImageId
Section titled “swatchImageId”ID
No description.
ProductPayload
Section titled “ProductPayload”What the product mutations return.
product
Section titled “product”Product
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ProductStatus
Section titled “ProductStatus”Whether a product is finished.
| Value | Meaning |
|---|---|
DRAFT | Being worked on. Invisible to every storefront. |
ACTIVE | No description. |
ARCHIVED | Withdrawn but kept, so orders referencing it still render. |
ProductUpdateInput
Section titled “ProductUpdateInput”Changes to a product.
Partial. A field omitted is unchanged; a field sent as explicit null is
cleared. tags and options are replaced wholesale when present — they are
sets, and merging a set has no unambiguous meaning.
String
No description.
handle
Section titled “handle”Handle
No description.
descriptionHtml
Section titled “descriptionHtml”HTML
No description.
vendor
Section titled “vendor”String
No description.
productType
Section titled “productType”String
No description.
[String!]
No description.
status
Section titled “status”ProductStatus
No description.
categoryId
Section titled “categoryId”ID
No description.
SEOInput
No description.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
ProductVariant
Section titled “ProductVariant”The purchasable unit: one combination of option values.
ID!
No description.
version
Section titled “version”Version!
No description.
String!
No description.
String
No description.
barcode
Section titled “barcode”String
No description.
position
Section titled “position”Int!
No description.
selectedOptions
Section titled “selectedOptions”[SelectedOption!]!
No description.
Money!
No description.
compareAtPrice
Section titled “compareAtPrice”Money
No description.
Money
What the merchant pays for it — بهای تمامشده.
Separately scoped from the rest of the variant: margin is the most commercially sensitive number a shop holds, and an app that needs to read prices almost never needs to read cost.
marginPercent
Section titled “marginPercent”Float
Margin as a fraction, from price and cost. Null when cost is unset.
Computed here so every admin screen and every report agrees on the formula.
inventoryItem
Section titled “inventoryItem”InventoryItem
The stock record behind this variant, or null when it does not track inventory — a service, a made-to-order item, a digital download.
availableQuantity
Section titled “availableQuantity”Int
Sellable across every location. Null when inventory is not tracked.
continueSellingWhenOutOfStock
Section titled “continueSellingWhenOutOfStock”Boolean!
Whether it can still be sold at zero — backorder or made to order.
requiresShipping
Section titled “requiresShipping”Boolean!
No description.
weight
Section titled “weight”Weight
No description.
dimensions
Section titled “dimensions”Dimensions
No description.
quantityLimit
Section titled “quantityLimit”Int
Per-order cap, for scarce or rationed goods. Null for uncapped.
Image
No description.
product
Section titled “product”Product!
No description.
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
metafield
Section titled “metafield”Metafield
No description.
| Argument | Type | Meaning |
|---|---|---|
namespace | String | No description. |
key | String! | No description. |
metafields
Section titled “metafields”[Metafield]!
No description.
| Argument | Type | Meaning |
|---|---|---|
identifiers | [MetafieldIdentifier!]! | No description. |
ProductVariantConnection
Section titled “ProductVariantConnection”A page of variants.
[ProductVariantEdge!]!
No description.
[ProductVariant!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
ProductVariantCreateInput
Section titled “ProductVariantCreateInput”A new variant.
selectedOptions
Section titled “selectedOptions”[SelectedOptionInput!]!
Which value on each axis. Must name every axis the product has.
MoneyInput!
No description.
compareAtPrice
Section titled “compareAtPrice”MoneyInput
No description.
MoneyInput
No description.
String
No description.
barcode
Section titled “barcode”String
No description.
weight
Section titled “weight”WeightInput
No description.
dimensions
Section titled “dimensions”DimensionsInput
No description.
requiresShipping
Section titled “requiresShipping”Boolean
No description.
continueSellingWhenOutOfStock
Section titled “continueSellingWhenOutOfStock”Boolean
No description.
quantityLimit
Section titled “quantityLimit”Int
No description.
inventoryQuantities
Section titled “inventoryQuantities”[InventoryQuantityInput!]
Opening stock per location. Omit for a variant that does not track it.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
ProductVariantEdge
Section titled “ProductVariantEdge”One variant, with its cursor.
cursor
Section titled “cursor”String!
No description.
ProductVariant!
No description.
ProductVariantPayload
Section titled “ProductVariantPayload”What the variant mutations return.
variants
Section titled “variants”[ProductVariant!]!
The variants after the operation, in the order supplied.
product
Section titled “product”Product
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ProductVariantSortKeys
Section titled “ProductVariantSortKeys”How a variant list is ordered.
| Value | Meaning |
|---|---|
POSITION | No description. |
TITLE | No description. |
PRICE | No description. |
SKU | No description. |
INVENTORY_QUANTITY | No description. |
ProductVariantUpdateInput
Section titled “ProductVariantUpdateInput”Changes to a variant. Partial, with the same null semantics as a product.
ID!
No description.
MoneyInput
No description.
compareAtPrice
Section titled “compareAtPrice”MoneyInput
No description.
MoneyInput
No description.
String
No description.
barcode
Section titled “barcode”String
No description.
weight
Section titled “weight”WeightInput
No description.
dimensions
Section titled “dimensions”DimensionsInput
No description.
requiresShipping
Section titled “requiresShipping”Boolean
No description.
continueSellingWhenOutOfStock
Section titled “continueSellingWhenOutOfStock”Boolean
No description.
quantityLimit
Section titled “quantityLimit”Int
No description.
position
Section titled “position”Int
No description.
metafields
Section titled “metafields”[MetafieldInput!]
No description.
ResourceSource
Section titled “ResourceSource”Where a resource came from.
String!
manual, import, instagram, digikala, or an app’s handle.
externalId
Section titled “externalId”String
The id in that system, for re-syncing and for de-duplicating.
importedAt
Section titled “importedAt”DateTime
No description.
ObjectWhat a page tells a crawler about itself.
String
No description.
description
Section titled “description”String
No description.
canonicalUrl
Section titled “canonicalUrl”URL
Set by the merchant to override the platform’s canonical. Rarely correct.
noIndex
Section titled “noIndex”Boolean!
No description.
SEOInput
Section titled “SEOInput”SEO fields as supplied.
String
No description.
description
Section titled “description”String
No description.
canonicalUrl
Section titled “canonicalUrl”URL
No description.
noIndex
Section titled “noIndex”Boolean
No description.
SelectedOption
Section titled “SelectedOption”One axis and the value chosen on it.
String!
No description.
String!
No description.
SelectedOptionInput
Section titled “SelectedOptionInput”One axis and the value chosen on it, as supplied.
String!
No description.
String!
No description.
StagedUploadPayload
Section titled “StagedUploadPayload”What stagedUploadsCreate returns.
stagedUploads
Section titled “stagedUploads”[StagedUpload!]!
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
TaxonomyCategory
Section titled “TaxonomyCategory”A node in the product taxonomy.
Most nodes are platform-maintained and shared across every shop — the anchor
the Torob and Digikala mappings hang off. A merchant whose goods do not fit
anything already listed can hang a shop-owned node under one of those
(taxonomyExtensionCreate). Shop nodes are not shared: they inherit the
nearest platform ancestor’s mappings, and only that ancestor is comparable
across shops.
ID!
No description.
handle
Section titled “handle”Handle!
No description.
String!
No description.
isExtension
Section titled “isExtension”Boolean!
True when this node belongs to the calling shop, hung under the shared tree.
Platform nodes are the same for every shop. Extensions are not: they exist so a merchant can still classify goods the shared tree does not name, without editing the tree everyone else sees. An extension is never a root.
parent
Section titled “parent”TaxonomyCategory
No description.
ancestors
Section titled “ancestors”[TaxonomyCategory!]!
Root first, this category last. Returned whole; a breadcrumb needs all of it.
children
Section titled “children”[TaxonomyCategory!]!
No description.
externalMappings
Section titled “externalMappings”[TaxonomyMapping!]!
How this maps onto an external marketplace’s own tree.
Maintained by the platform. A merchant who has classified a product correctly here should never be asked to classify it again for Torob.
TaxonomyCategoryPayload
Section titled “TaxonomyCategoryPayload”What hanging a shop-owned node under the shared tree returns.
category
Section titled “category”TaxonomyCategory
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
TaxonomyExtensionCreateInput
Section titled “TaxonomyExtensionCreateInput”A shop-owned node, hung under a platform category or another of this shop’s.
The parent is required and is never omitted: an extension is never a root, because a root with no platform ancestor has no commodity code and nothing to map onto a marketplace’s tree.
parentId
Section titled “parentId”ID!
A platform category, or another of this shop’s extensions.
String!
The name shown to staff. Persian.
TaxonomyMapping
Section titled “TaxonomyMapping”How a taxonomy node maps onto somebody else’s tree.
system
Section titled “system”String!
torob, digikala, basalam, google.
externalId
Section titled “externalId”String!
No description.
externalPath
Section titled “externalPath”String
No description.