Categories, Tags, and Collections (GQL)
Get category details
query(
$where: CategoryWhereInput
$orderBy: CategoryOrderByInput
$pagination: PaginationInput
) {
categoriesV2(where: $where, orderBy: $orderBy, pagination: $pagination) {
nodes {
id
name
slugifiedName
status
shortDescription
longDescription
thumbnail
pageTitle
weight
createdAt
updatedAt
deletedAt
}
edges {
node {
id
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}
{
"where": {
"language": "EN_US"
},
"orderBy": {
"fields": {
"fieldName": "NAME",
"by": "DESC"
}
},
"pagination": {
"first": 3
}
}
Get tag definitions
query {
tagDefinitions {
edges {
node {
id
color
description
status
type
name
values
editableByProvider
forceEnumValidation
isVisible
requiredOnAPI
showTagName
createdAt
updatedAt
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
nodes {
id
color
description
status
type
name
values
editableByProvider
forceEnumValidation
isVisible
requiredOnAPI
showTagName
createdAt
updatedAt
}
}
}
Updated about 1 month ago