feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
41
backend/dataconnect/example/hub/mutations.gql
Normal file
41
backend/dataconnect/example/hub/mutations.gql
Normal file
@@ -0,0 +1,41 @@
|
||||
mutation createHub(
|
||||
$name: String!
|
||||
$locationName: String
|
||||
$address: String
|
||||
$nfcTagId: String
|
||||
$ownerId: UUID!
|
||||
) @auth(level: USER) {
|
||||
hub_insert(
|
||||
data: {
|
||||
name: $name
|
||||
locationName: $locationName
|
||||
address: $address
|
||||
nfcTagId: $nfcTagId
|
||||
ownerId: $ownerId
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateHub(
|
||||
$id: UUID!
|
||||
$name: String
|
||||
$locationName: String
|
||||
$address: String
|
||||
$nfcTagId: String
|
||||
$ownerId: UUID
|
||||
) @auth(level: USER) {
|
||||
hub_update(
|
||||
id: $id
|
||||
data: {
|
||||
name: $name
|
||||
locationName: $locationName
|
||||
address: $address
|
||||
nfcTagId: $nfcTagId
|
||||
ownerId: $ownerId
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteHub($id: UUID!) @auth(level: USER) {
|
||||
hub_delete(id: $id)
|
||||
}
|
||||
Reference in New Issue
Block a user