feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
22
backend/dataconnect/example/staffRole/mutations.gql
Normal file
22
backend/dataconnect/example/staffRole/mutations.gql
Normal file
@@ -0,0 +1,22 @@
|
||||
mutation createStaffRole(
|
||||
$staffId: UUID!
|
||||
$roleId: UUID!
|
||||
$roleType: RoleType
|
||||
) @auth(level: USER) {
|
||||
staffRole_insert(
|
||||
data: {
|
||||
staffId: $staffId
|
||||
roleId: $roleId
|
||||
roleType: $roleType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteStaffRole(
|
||||
$staffId: UUID!
|
||||
$roleId: UUID!
|
||||
) @auth(level: USER) {
|
||||
staffRole_delete(
|
||||
key: { staffId: $staffId, roleId: $roleId }
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user