Add dueDate and assignee on notes (#988)

* Add dueDate and assignee on notes

* Fix tests

* Fix tests
This commit is contained in:
Charles Bochet
2023-07-29 15:36:21 -07:00
committed by GitHub
parent d9f6ae8663
commit 8601ed04ae
46 changed files with 875 additions and 205 deletions

View File

@ -17,6 +17,13 @@ export const GET_ACTIVITIES_BY_TARGETS = gql`
body
type
completedAt
dueAt
assignee {
id
firstName
lastName
displayName
}
author {
id
firstName
@ -54,6 +61,13 @@ export const GET_ACTIVITY = gql`
title
type
completedAt
dueAt
assignee {
id
firstName
lastName
displayName
}
author {
id
firstName

View File

@ -58,26 +58,22 @@ export const DELETE_ACTIVITY = gql`
export const UPDATE_ACTIVITY = gql`
mutation UpdateActivity(
$id: String!
$body: String
$title: String
$type: ActivityType
$completedAt: DateTime
$where: ActivityWhereUniqueInput!
$data: ActivityUpdateInput!
) {
updateOneActivity(
where: { id: $id }
data: {
body: $body
title: $title
type: $type
completedAt: $completedAt
}
) {
updateOneActivity(where: $where, data: $data) {
id
body
title
type
completedAt
dueAt
assignee {
id
firstName
lastName
displayName
}
}
}
`;