new schema and crud of vendorRate
This commit is contained in:
51
dataconnect/connector/vendorRate/mutations.gql
Normal file
51
dataconnect/connector/vendorRate/mutations.gql
Normal file
@@ -0,0 +1,51 @@
|
||||
mutation CreateVendorRate(
|
||||
$vendorName: String!,
|
||||
$category: VendorRateCategory!,
|
||||
$roleName: String!,
|
||||
$employeeWage: Float!,
|
||||
$markupPercentage: Float,
|
||||
$vendorFeePercentage: Float,
|
||||
$clientRate: Float!
|
||||
) @auth(level: USER) {
|
||||
vendorRate_insert(
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
category: $category
|
||||
roleName: $roleName
|
||||
employeeWage: $employeeWage
|
||||
markupPercentage: $markupPercentage
|
||||
vendorFeePercentage: $vendorFeePercentage
|
||||
clientRate: $clientRate
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateVendorRate(
|
||||
$id: UUID!,
|
||||
$vendorName: String,
|
||||
$category: VendorRateCategory,
|
||||
$roleName: String,
|
||||
$employeeWage: Float,
|
||||
$markupPercentage: Float,
|
||||
$vendorFeePercentage: Float,
|
||||
$clientRate: Float
|
||||
) @auth(level: USER) {
|
||||
vendorRate_update(
|
||||
id: $id,
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
category: $category
|
||||
roleName: $roleName
|
||||
employeeWage: $employeeWage
|
||||
markupPercentage: $markupPercentage
|
||||
vendorFeePercentage: $vendorFeePercentage
|
||||
clientRate: $clientRate
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteVendorRate(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendorRate_delete(id: $id)
|
||||
}
|
||||
Reference in New Issue
Block a user