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)
|
||||
}
|
||||
23
backend/dataconnect/example/customRateCard/queries.gql
Normal file
23
backend/dataconnect/example/customRateCard/queries.gql
Normal file
@@ -0,0 +1,23 @@
|
||||
query listCustomRateCards @auth(level: USER) {
|
||||
customRateCards {
|
||||
id
|
||||
name
|
||||
baseBook
|
||||
discount
|
||||
isDefault
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
query getCustomRateCardById($id: UUID!) @auth(level: USER) {
|
||||
customRateCard(id: $id) {
|
||||
id
|
||||
name
|
||||
baseBook
|
||||
discount
|
||||
isDefault
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user