feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
41
backend/dataconnect/example/workForce/mutations.gql
Normal file
41
backend/dataconnect/example/workForce/mutations.gql
Normal file
@@ -0,0 +1,41 @@
|
||||
mutation createWorkforce(
|
||||
$vendorId: UUID!
|
||||
$staffId: UUID!
|
||||
$workforceNumber: String!
|
||||
$employmentType: WorkforceEmploymentType
|
||||
) @auth(level: USER) {
|
||||
workforce_insert(
|
||||
data: {
|
||||
vendorId: $vendorId
|
||||
staffId: $staffId
|
||||
workforceNumber: $workforceNumber
|
||||
employmentType: $employmentType
|
||||
status: ACTIVE
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateWorkforce(
|
||||
$id: UUID!
|
||||
$workforceNumber: String
|
||||
$employmentType: WorkforceEmploymentType
|
||||
$status: WorkforceStatus
|
||||
) @auth(level: USER) {
|
||||
workforce_update(
|
||||
id: $id
|
||||
data: {
|
||||
workforceNumber: $workforceNumber
|
||||
employmentType: $employmentType
|
||||
status: $status
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deactivateWorkforce(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
workforce_update(
|
||||
id: $id
|
||||
data: { status: INACTIVE }
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user