Access product tags used for classification and filtering.
ProductTag — Returns a single product tag by id
ProductTag — Returns a single product tag by idExample Query:
query GetProductTag($id: ID!) {
ProductTag(id: $id) {
id
label
active
}
}Example Result:
{
"data": {
"ProductTag": {
"id": 10001,
"label": "Best Seller",
"active": true
}
}
}ProductTags — Returns a list of product tags with sorting and filters
ProductTags — Returns a list of product tags with sorting and filtersExample Query:
query ProductTags(
$where: QueryProductTagsWhereWhereConditions,
$orderBy: [QueryProductTagsOrderByOrderByClause!],
$search: String,
$first: Int,
$page: Int
) {
ProductTags(
where: $where,
orderBy: $orderBy,
search: $search,
first: $first,
page: $page
) {
paginatorInfo {
total
currentPage
}
data {
id
label
active
}
}
}Example Variables:
{
"where": {
"AND": [
{ "column": "ACTIVE", "operator": "EQ", "value": true }
]
},
"search": "Sale",
"first": 50,
"page": 1
}B2bStoreProductTags — Filtered product tags for B2B store
B2bStoreProductTags — Filtered product tags for B2B storeReturns only active product tags linked to active products available within the B2B store.
Available fields
Filters
| Field | Example |
|---|---|
id | { "column": "ID", "operator": "EQ", "value": 10001 } |
label | { "column": "LABEL", "operator": "LIKE", "value": "%Sale%" } |
active | { "column": "ACTIVE", "operator": "EQ", "value": true } |
