Fetch team data
Team
Team
teams(uuids: [String])
=> [Team]
The Team
object is the access point for team-level information and objects.
athletes(emails: [String], uuids: [String])
=> [Athlete]
The athletes
field returns a list of athlete objects for a given team 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.
groups(uuids: [String])
=> String
The groups
field returns an array of a given team's groups (optionally limited to groups with specified UUIDs).
name
=> String
The name
fields returns the name of the institution.
uuid
=> String
The uuid
field returns the UUID generated by FYTT for the object.
Sample Query
Example:
query {
teams {
name,
uuid
}
}
Response:
{
"data": {
"teams": [
{
"name": "Baseball",
"uuid": "6f09fb3a-f703-47c7-ab0e-637ac824aad9"
},
{
"name": "Football",
"uuid": "147161ee-01cb-42be-afb0-70e877d3b2cb"
},
{
"name": "Basketball",
"uuid": "78e6690c-d7ed-42a5-a070-eea994b9878f"
}
]
}
}