APIAvatar
Get Avatar Profiles
Retrieve all avatar profiles from the system
Get Avatar Profiles
Retrieve all available avatar profiles with complete metadata
Query
Parameters
âšī¸
No Parameters Required
This query does not require any parameters and returns all available avatar profiles
Return Value
đĻ
Returns Array of AvatarProfile Objects
The query returns a list of all AvatarProfile
objects available in the system
AvatarProfile Fields
đ
Available Fields
Fields you can query from each AvatarProfile
Basic Information
id
- Unique identifierfname
- First namesurname
- Last namedetails
- BiographyTimestamps
regDate
- Registration dateupdateDate
- Last updatedeleted
- Deletion flagVisual Components
hairColor
- Hair coloravatarSet
- Component arrayMetadata
skillSet
- Skills arrayfactsSet
- Facts arrayExample
đģ
Usage Example
Retrieving all avatar profiles
query {
getAvatars {
id
fname
surname
hairColor
details
skillSet {
id
name
rate
}
avatarSet {
id
groupId
compId
}
factsSet {
id
topic
detail
}
regDate
updateDate
}
}
Response Example
đ¤
Sample Response
Example of returned profile data
{
"data": {
"getAvatars": [
{
"id": 123,
"fname": "Nicola",
"surname": "Tesla",
"hairColor": "Black",
"details": "A visionary inventor known for contributions to AC electricity",
"skillSet": [
{
"id": 1,
"name": "Inventing",
"rate": 5
}
],
"avatarSet": [
{
"id": 10,
"groupId": "engineers",
"compId": 101
}
],
"factsSet": [
{
"id": 1,
"topic": "Achievements",
"detail": "Developed the modern AC electricity supply system"
}
],
"regDate": 1625247600000.0,
"updateDate": 1625334000000.0
},
{
"id": 124,
"fname": "Marie",
"surname": "Curie",
"hairColor": "Brown",
"details": "Pioneering physicist and chemist",
"skillSet": [
{
"id": 2,
"name": "Physics",
"rate": 5
}
],
"avatarSet": [],
"factsSet": [],
"regDate": 1625248000000.0,
"updateDate": 1625335000000.0
}
]
}
}
Use Cases
đ
Avatar Gallery
Display all available avatar profiles in a gallery or catalog view
đ
Character Selection
Allow users to browse and select from predefined avatar characters
đ
Search & Filter
Build searchable directories with filtering by skills, facts, or attributes
đ
Analytics & Reporting
Analyze avatar profile data for insights and statistics
Filtering & Pagination
â ī¸
Performance Considerations
Handle large datasets efficiently
Client-Side Filtering
Apply filters on the client side after fetching data (suitable for small datasets)
Result Caching
Cache results to reduce server load and improve response times
Selective Field Queries
Only query fields you need to reduce payload size
Common Filters
đ§
Client-Side Filtering Patterns
Common ways to filter avatar profiles
By Name
Search fname or surname
By Skill
Filter by skill name or rating
By Hair Color
Group by hairColor attribute
By Date
Sort by regDate or updateDate
đĄ
Best Practice
For large datasets, consider implementing server-side pagination and filtering for better performance