GraphQL Query
query Roster($startTime: DateTime!, $endTime: DateTime!, $locationId: ID!, $published: Boolean) {
shifts(startTime: $startTime, endTime: $endTime, locationId: $locationId, published: $published) {
id
startTime
endTime
breaks {
startTime
endTime
subtracts
}
published
hours
employee {
id
fullName
}
position {
id
text
}
location {
id
name
}
}
}
Example Variables
{
"startTime": "2024-05-01T16:00:00.000Z",
"endTime": "2024-05-30T17:59:59.999Z",
"locationId": "12325",
"published": null
}
Example Response
{
"data": {
"shifts": [
{
"id": "5652527",
"startTime": "2024-05-22T00:00:00.000Z",
"endTime": "2024-05-22T04:00:00.000Z",
"breaks": [],
"published": true,
"hours": 4,
"employee": {
"id": "72908",
"fullName": "Craig Bussell"
},
"position": {
"id": "18215",
"text": "Product Manager"
},
"location": {
"id": "12325",
"name": "Integration Sandbox"
}
},
{
"id": "5652528",
"startTime": "2024-05-20T22:00:00.000Z",
"endTime": "2024-05-21T05:00:00.000Z",
"breaks": [],
"published": true,
"hours": 7,
"employee": {
"id": "72908",
"fullName": "Craig Bussell"
},
"position": {
"id": "18215",
"text": "Product Manager"
},
"location": {
"id": "12325",
"name": "Integration Sandbox"
}
}
]
}
}