feature/IO-3291-Tasks-Notifications: Checkpoint
This commit is contained in:
@@ -381,3 +381,24 @@ export const MUTATION_UPDATE_TASK = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* Query to get the count of my tasks
|
||||
* @type {DocumentNode}
|
||||
*/
|
||||
export const QUERY_MY_TASKS_COUNT = gql`
|
||||
query QUERY_MY_TASKS_COUNT($assigned_to: uuid!, $bodyshopid: uuid!) {
|
||||
tasks_aggregate(
|
||||
where: {
|
||||
assigned_to: { _eq: $assigned_to }
|
||||
bodyshopid: { _eq: $bodyshopid }
|
||||
completed: { _eq: false }
|
||||
deleted: { _eq: false }
|
||||
}
|
||||
) {
|
||||
aggregate {
|
||||
count
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user