Fetch group data for a given team
Group
Group
The Group
object provides basic information about a given group, as well as an entry point to fetch athletes that belong to the group. The entry point is nested within the Team
object.
athletes(emails: [String], uuids: [String])
=> [Athlete]
The athletes
field returns a list of athlete objects for a given group with the data points you requested. It accepts an optional emails
or uuids
argument that allows you to request data about specific athletes by providing an array of emails or UUIDs.
name
=> String
The name
field returns the name of the group.
uuid
=> String
The uuid
field returns the UUID generated by FYTT for the object.
Example:
query {
teams(uuids: ["147161ee-01cb-42be-afb0-70e877d3b2cb"]) {
name,
groups(uuids:["144"]) {
name,
athletes {
name
}
}
}
}
Response:
{
"data": {
"teams": [
{
"name": "Football",
"groups": [
{
"name": "Team",
"athletes": [
{
"name": "Vaughn Miller"
},
{
"name": "Luke Miller"
},
{
"name": "Malcom Park"
},
{
"name": "Lincoln Smith"
},
{
"name": "Nolan Wille"
},
{
"name": "Benjamin Park"
},
{
"name": "Devin Anderson"
},
{
"name": "Levi Lockwood"
},
{
"name": "David Hansen"
},
{
"name": "Spencer Walker"
}
]
}
]
}
]
}
}