Get Components By Group
Retrieve all avatar components within a specific category
Get Components By Group
Retrieve all avatar components within a specific group category
Query
Schema
getAvatarComponentsByGroup(
groupId: String!
): [AvatarComponent]Parameters
groupIdRequiredString!Return Value
The query returns a list of all AvatarComponent objects belonging to the specified group
Common Group IDs
Example
query {
getAvatarComponentsByGroup(groupId: "hats") {
groupId
compId
tierLevel
price
limited
purchased
svg
width
top
left
}
}Response Example
{
"data": {
"getAvatarComponentsByGroup": [
{
"groupId": "hats",
"compId": 1,
"tierLevel": 1,
"price": 5.0,
"limited": 100,
"purchased": 45,
"svg": "<svg>...</svg>",
"width": 30,
"top": 5,
"left": 10
},
{
"groupId": "hats",
"compId": 2,
"tierLevel": 2,
"price": 10.0,
"limited": 50,
"purchased": 12,
"svg": "<svg>...</svg>",
"width": 35,
"top": 3,
"left": 8
},
{
"groupId": "hats",
"compId": 3,
"tierLevel": 3,
"price": 20.0,
"limited": 25,
"purchased": 8,
"svg": "<svg>...</svg>",
"width": 32,
"top": 6,
"left": 12
}
]
}
}Use Cases
Display all available components in a specific category for shopping
Build category-based navigation in avatar customization tools
Analyze component availability and sales within categories
Allow users to switch between components in the same category
Filtering Tips
Show only components accessible to user's tier
Filter where purchased < limited
Filter components within budget
Order by purchased count
Typical Workflow
User clicks on "Hats" category in avatar builder
Query getAvatarComponentsByGroup(groupId: "hats")
Show all hats with pricing, tier requirements, and availability
User selects desired hat component for their avatar