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

55 lines
1.1 KiB
TypeScript
Raw Normal View History

import gql from 'graphql-tag';
export const GET_NOTICES_BY_CREATOR = gql`
2023-05-12 02:35:42 +08:00
query getNoticesByCreatorUid($uid: String!) {
noticesByCreator(uid: $uid) {
uid
title
body
expiry
createdByUid
departments {
uid
name
}
groups {
uid
name
}
}
}
`;
export const GET_ALL_NOTICES = gql`
query getAllDocuments {
documentAll {
uid
name
version
status
departmentUid
department {
uid
name
}
}
}
`;
export const GET_NOTICE_BY_UID = gql`
2023-05-12 02:35:42 +08:00
query getDocumentByUid($uid: String!) {
documentByUid(uid: $uid) {
uid
name
version
status
content
departmentUid
department {
uid
name
}
}
}
`;