feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
37
backend/dataconnect/example/customRateCard/mutations.gql
Normal file
37
backend/dataconnect/example/customRateCard/mutations.gql
Normal file
@@ -0,0 +1,37 @@
|
||||
mutation createCustomRateCard(
|
||||
$name: String!,
|
||||
$baseBook: String,
|
||||
$discount: Float,
|
||||
$isDefault: Boolean
|
||||
) @auth(level: USER) {
|
||||
customRateCard_insert(
|
||||
data: {
|
||||
name: $name,
|
||||
baseBook: $baseBook,
|
||||
discount: $discount,
|
||||
isDefault: $isDefault
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateCustomRateCard(
|
||||
$id: UUID!,
|
||||
$name: String,
|
||||
$baseBook: String,
|
||||
$discount: Float,
|
||||
$isDefault: Boolean
|
||||
) @auth(level: USER) {
|
||||
customRateCard_update(
|
||||
id: $id,
|
||||
data: {
|
||||
name: $name,
|
||||
baseBook: $baseBook,
|
||||
discount: $discount,
|
||||
isDefault: $isDefault
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteCustomRateCard($id: UUID!) @auth(level: USER) {
|
||||
customRateCard_delete(id: $id)
|
||||
}
|
||||
Reference in New Issue
Block a user