Skip to Content

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 } cursor } nodes { id } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } totalCount } }

Arguments

ArgumentTypeRequiredDescription
queryStringNoSearch query string
parentIdIntNoFilter by parent category ID
firstIntNoReturns the first n elements
afterStringNoReturns elements after cursor
lastIntNoReturns the last n elements
beforeStringNoReturns elements before cursor
sortKeyProductGroupSortKeyNoThe key to sort product groups by
reverseBooleanNoReverse the order of the underlying list

Return Type

ProductGroupConnection - A connection to a list of ProductGroup items. Contains edges with ProductGroupEdge items, nodes with ProductGroup items, pagination information via PageInfo, and a totalCount of items.

Example

{ productGroups(query: "electronics", first: 10, sortKey: NAME) { edges { node { id name description } cursor } pageInfo { hasNextPage endCursor } totalCount } }