adding staff schema
This commit is contained in:
25
dataconnect/connector/staff/mutations.gql
Normal file
25
dataconnect/connector/staff/mutations.gql
Normal file
@@ -0,0 +1,25 @@
|
||||
mutation CreateStaff(
|
||||
$employeeName: String!,
|
||||
$vendorId: UUID,
|
||||
$email: String,
|
||||
$position: String,
|
||||
$employmentType: EmploymentType!,
|
||||
$rating: Float,
|
||||
$reliabilityScore: Int,
|
||||
$backgroundCheckStatus: BackgroundCheckStatus!,
|
||||
$certifications: JSON
|
||||
) @auth(level: USER) {
|
||||
staff_insert(
|
||||
data: {
|
||||
employeeName: $employeeName
|
||||
vendorId: $vendorId
|
||||
email: $email
|
||||
position: $position
|
||||
employmentType: $employmentType
|
||||
rating: $rating
|
||||
reliabilityScore: $reliabilityScore
|
||||
backgroundCheckStatus: $backgroundCheckStatus
|
||||
certifications: $certifications
|
||||
}
|
||||
)
|
||||
}
|
||||
14
dataconnect/connector/staff/queries.gql
Normal file
14
dataconnect/connector/staff/queries.gql
Normal file
@@ -0,0 +1,14 @@
|
||||
query listStaff @auth(level: USER) {
|
||||
staff {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
email
|
||||
position
|
||||
employmentType
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
certifications
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user