productGroups
Search for product groups in the catalog
Authentication
Public Access: Accessible with the public API key
Query Structure
{
productGroups(
query: String
parentId: Int
first: Int
after: String
last: Int
before: String
sortKey: ProductGroupSortKey
reverse: Boolean
) {
edges {
node {
id
name
}
cursor
}
nodes {
id
name
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Arguments
Return Type
ProductGroupConnection - A connection to a list of ProductGroup items with pagination support.
Example
query {
productGroups(
query: "electronics"
first: 10
sortKey: NAME
) {
edges {
node {
id
name
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}