Component Grouping
Quick start
query GroupByCategory {
component {
componentGroups(
groupBy: CATEGORY
pagination: { first: 10 }
) {
edges {
node {
key
label
totalCount
components {
edges {
node {
id
name
identifier { displayValue }
}
}
pageInfo {
hasNextPage
}
}
}
}
totalCount
pageInfo {
hasNextPage
endCursor
}
}
}
}When to use grouping
Grouping dimensions
Value
Groups by
Group key
Group label
Sentinel groups for null values
Dimension
Sentinel key
Label
Pagination across groups
Loading more components in a group
Filtering + grouping
Simple filter
Advanced filter
Sorting within groups
Field
Description
Complete API reference
ComponentGroupField
componentGroups field
ComponentGroupConnection
ComponentGroup
componentsInGroup field
PaginationInput
Next steps
Last updated
Was this helpful?