query QueryItemsByCategoryId($categoryId: ID!) {
QueryItemsByCategoryId(categoryId: $categoryId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
id
billOfMaterialsId
parentItemId
itemIdForCategoryItemId
sku
sortNumber
}
}
nodes {
id
billOfMaterialsId
parentItemId
itemIdForCategoryItemId
sku
sortNumber
}
totalCount
}
}{
"categoryId": "id"
}{
"data": {
"QueryItemsByCategoryId": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"billOfMaterialsId": 1,
"parentItemId": "id",
"itemIdForCategoryItemId": "id",
"sku": "string",
"sortNumber": 1
}
}
],
"nodes": [
{
"id": "id",
"billOfMaterialsId": 1,
"parentItemId": "id",
"itemIdForCategoryItemId": "id",
"sku": "string",
"sortNumber": 1
}
],
"totalCount": 1
}
}
}QueryItemsByCategoryId
Queries the items of a category. By default only items that are directly assigned to the category are returned; with “includeSubcategories”, items assigned to any of its subcategories, including nested ones, are returned as well. Each item is returned once, even if it is assigned to several of these categories. Inactive categories are included. A category without items returns an empty list; an unknown category returns 404 Not Found. The items are ordered by their ID.
QueryItemsByCategoryId(categoryId: ID!, includeSubcategories: Boolean, first: Int, after: String, last: Int, before: String): QueryItemsByCategoryIdConnectionArguments
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor.
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor.
Information to aid in pagination.
A list of edges.
A flattened list of the nodes.
Identifies the total count of items in the connection.
query QueryItemsByCategoryId($categoryId: ID!) {
QueryItemsByCategoryId(categoryId: $categoryId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
id
billOfMaterialsId
parentItemId
itemIdForCategoryItemId
sku
sortNumber
}
}
nodes {
id
billOfMaterialsId
parentItemId
itemIdForCategoryItemId
sku
sortNumber
}
totalCount
}
}{
"categoryId": "id"
}{
"data": {
"QueryItemsByCategoryId": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"billOfMaterialsId": 1,
"parentItemId": "id",
"itemIdForCategoryItemId": "id",
"sku": "string",
"sortNumber": 1
}
}
],
"nodes": [
{
"id": "id",
"billOfMaterialsId": 1,
"parentItemId": "id",
"itemIdForCategoryItemId": "id",
"sku": "string",
"sortNumber": 1
}
],
"totalCount": 1
}
}
}Was this page helpful?