Mutation
mutation CreateIncident($incident: CreateIncidentInput!) {
createIncident(incident: $incident)
}Variables
{
"incident": {
"actions": [
{
"name": "string",
"type": "string"
}
],
"eventAt": "value",
"injuryMedicalRespondee": [
"string"
],
"involved": [
"string"
],
"locationId": 1,
"name": "string",
"photos": [
"value"
],
"witnesses": [
"string"
]
}
}Response
{
"data": {
"createIncident": "string"
}
}Mutations
createIncident
Files a new incident and returns its id.
MUTATION
createIncident(incident: CreateIncidentInput!): String!Arguments
incident
required
The incident to file.
Returns
String!
Mutation
mutation CreateIncident($incident: CreateIncidentInput!) {
createIncident(incident: $incident)
}Variables
{
"incident": {
"actions": [
{
"name": "string",
"type": "string"
}
],
"eventAt": "value",
"injuryMedicalRespondee": [
"string"
],
"involved": [
"string"
],
"locationId": 1,
"name": "string",
"photos": [
"value"
],
"witnesses": [
"string"
]
}
}Response
{
"data": {
"createIncident": "string"
}
}