26 lines
623 B
GraphQL
26 lines
623 B
GraphQL
mutation CreateStaff(
|
|
$employeeName: String!,
|
|
$vendorId: UUID,
|
|
$email: String,
|
|
$position: String,
|
|
$employmentType: EmploymentType!,
|
|
$rating: Float,
|
|
$reliabilityScore: Int,
|
|
$backgroundCheckStatus: BackgroundCheckStatus!,
|
|
$certifications: String
|
|
) @auth(level: USER) {
|
|
staff_insert(
|
|
data: {
|
|
employeeName: $employeeName
|
|
vendorId: $vendorId
|
|
email: $email
|
|
position: $position
|
|
employmentType: $employmentType
|
|
rating: $rating
|
|
reliabilityScore: $reliabilityScore
|
|
backgroundCheckStatus: $backgroundCheckStatus
|
|
certifications: $certifications
|
|
}
|
|
)
|
|
}
|