Mutations allow you to modify data in FYTT
Mutations allow you to make changes to your data in FYTT. Below is a generic example that illustrates a basic format for a GraphQL Mutation
:
mutation {
operationName(
operationArg: "value"
) {
returnObject {
objectAttribute
}
status
errors
}
}
The query above is telling the system to perform a mutation with a operationName
name and its required arguments (operationArg
), then asking for a specific object (returnObject
) with the specified attributes (`objectAttribute) in response. In addition to the specified object, it's asking for the request status and any errors.
The response would be a JSON object with the following structure:
{
"data": {
"operationName": {
"returnObject": {
"objectAttribute": "attributeValue",
}
"status": "ok",
"errors": []
}
}
}
Available Mutations
Used to create or update KPIs at the institution. Learn more about KPIs here.
Used to create, update, or delete KPI measurements for athletes at the institution.
Used to create or update KPVs at the institution. Learn more about KPVs here.
Used to create, update, or delete KPV measurements for athletes at the institution.