| Argument | Type | Description |
|---|---|---|
after | String | Cursor for forward pagination |
before | String | Cursor for backward pagination |
filters | TasksFilters | Filters |
first | Int | First |
last | Int | Last |
orderBy | [TasksOrderBy] | Order by |
query( $filters: TasksFilters, $first: Int, $orderBy: [TasksOrderBy]) { listTasks( filters: $filters, first: $first, orderBy: $orderBy ) { edges { node { id # Add other fields you need } } pageInfo { hasNextPage endCursor } }}{ "filters": {}, "first": 1, "orderBy": {}}query { overdueTasksCount { id # Add other fields you need }}query($id: ID!) { task(id: $id) { id # Add other fields you need }}{ "id": "1"}query { taskCategories { id # Add other fields you need }}| Argument | Type | Description |
|---|---|---|
locationIdrequired | ID! | ID of the location |
query($locationId: ID!) { taskGroups(locationId: $locationId) { id # Add other fields you need }}{ "locationId": "1"}Query for a list of tasks
| Argument | Type | Description |
|---|---|---|
done | Boolean | Filter by completion status |
end | Date | Ending point for the range |
limit | Int | Maximum number of results to return |
locationId | ID | ID of the location |
offset | Int | Number of results to skip for pagination |
overdue | Boolean | Only show overdue due tasks |
patientId | ID | ID of the patient |
start | Date | Starting point for the range |
viewerAssigned | Boolean | If we should only show tasks assigned to the viewer |
query( $done: Boolean, $end: Date, $limit: Int, $locationId: ID, $offset: Int, $overdue: Boolean, $patientId: ID, $start: Date, $viewerAssigned: Boolean) { tasks( done: $done, end: $end, limit: $limit, locationId: $locationId, offset: $offset, overdue: $overdue, patientId: $patientId, start: $start, viewerAssigned: $viewerAssigned ) { id # Add other fields you need }}{ "done": true, "end": {}, "limit": 1, "locationId": "1", "offset": 1, "overdue": true, "patientId": "1", "start": {}, "viewerAssigned": true}query( $done: Boolean, $end: Date, $locationId: ID, $patientId: ID, $start: Date, $viewerAssigned: Boolean) { tasksCount( done: $done, end: $end, locationId: $locationId, patientId: $patientId, start: $start, viewerAssigned: $viewerAssigned ) { id # Add other fields you need }}{ "done": true, "end": {}, "locationId": "1", "patientId": "1", "start": {}, "viewerAssigned": true}