mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
68 lines
1.4 KiB
GraphQL
68 lines
1.4 KiB
GraphQL
|
|
||
|
mutation AddNotice($payload: NoticeInputType!) {
|
||
|
createNotice(payload: $payload) {
|
||
|
... on NoticeType {
|
||
|
__typename
|
||
|
uid
|
||
|
title
|
||
|
body
|
||
|
expiry
|
||
|
createdByUid
|
||
|
departments {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
groups {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
... on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation editNotice($uid: String!, $payload: NoticeInputType!) {
|
||
|
updateNotice(uid: $uid, payload: $payload) {
|
||
|
... on NoticeType {
|
||
|
__typename
|
||
|
uid
|
||
|
title
|
||
|
body
|
||
|
expiry
|
||
|
createdByUid
|
||
|
departments {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
groups {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
... on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation deleteNotice($uid: String!) {
|
||
|
deleteNotice(uid: $uid) {
|
||
|
... on DeletedItem {
|
||
|
__typename
|
||
|
uid
|
||
|
}
|
||
|
... on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|