felicity-lims/webapp/graphql/notice.queries.ts

55 lines
1 KiB
TypeScript
Raw Normal View History

2023-04-10 09:29:10 +08:00
import gql from 'graphql-tag';
2021-12-06 00:37:33 +08:00
export const GET_NOTICES_BY_CREATOR = gql`
2023-04-10 09:29:10 +08:00
query getNoticesByCreatorUid($uid: FelicityID!) {
noticesByCreator(uid: $uid) {
uid
title
body
expiry
createdByUid
departments {
uid
name
}
groups {
uid
name
}
}
2021-12-06 00:37:33 +08:00
}
2023-04-10 09:29:10 +08:00
`;
2021-12-06 00:37:33 +08:00
export const GET_ALL_NOTICES = gql`
2023-04-10 09:29:10 +08:00
query getAllDocuments {
documentAll {
uid
name
version
status
departmentUid
department {
uid
name
}
}
2021-12-06 00:37:33 +08:00
}
2023-04-10 09:29:10 +08:00
`;
2021-12-06 00:37:33 +08:00
export const GET_NOTICE_BY_UID = gql`
2023-04-10 09:29:10 +08:00
query getDocumentByUid($uid: FelicityID!) {
documentByUid(uid: $uid) {
uid
name
version
status
content
departmentUid
department {
uid
name
}
}
2021-12-06 00:37:33 +08:00
}
2023-04-10 09:29:10 +08:00
`;