moving dataconnect to dev
This commit is contained in:
61
backend/dataconnect/connector/requiredDoc/queries.gql
Normal file
61
backend/dataconnect/connector/requiredDoc/queries.gql
Normal file
@@ -0,0 +1,61 @@
|
||||
query listRequiredDocs @auth(level: USER) {
|
||||
requiredDocs {
|
||||
id
|
||||
name
|
||||
description
|
||||
status
|
||||
staffId
|
||||
fileUrl
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query getRequiredDocById($id: UUID!) @auth(level: USER) {
|
||||
requiredDoc(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
status
|
||||
staffId
|
||||
fileUrl
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query getRequiredDocsByStaffId($staffId: UUID!) @auth(level: USER) {
|
||||
requiredDocs(where: { staffId: { eq: $staffId } }) {
|
||||
id
|
||||
name
|
||||
description
|
||||
status
|
||||
staffId
|
||||
fileUrl
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterRequiredDocs(
|
||||
$staffId: UUID
|
||||
$status: ReqDocumentStatus
|
||||
$name: String
|
||||
) @auth(level: USER) {
|
||||
requiredDocs(
|
||||
where: {
|
||||
staffId: { eq: $staffId }
|
||||
status: { eq: $status }
|
||||
name: { eq: $name }
|
||||
}
|
||||
) {
|
||||
id
|
||||
name
|
||||
status
|
||||
staffId
|
||||
fileUrl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user