feat: Implement staff attire management including fetching options, user attire status, and upserting attire details.
This commit is contained in:
14
backend/dataconnect/connector/staffAttire/mutations.gql
Normal file
14
backend/dataconnect/connector/staffAttire/mutations.gql
Normal file
@@ -0,0 +1,14 @@
|
||||
mutation upsertStaffAttire(
|
||||
$staffId: UUID!
|
||||
$attireOptionId: UUID!
|
||||
$verificationPhotoUrl: String
|
||||
) @auth(level: USER) {
|
||||
staffAttire_upsert(
|
||||
data: {
|
||||
staffId: $staffId
|
||||
attireOptionId: $attireOptionId
|
||||
verificationPhotoUrl: $verificationPhotoUrl
|
||||
verificationStatus: PENDING
|
||||
}
|
||||
)
|
||||
}
|
||||
7
backend/dataconnect/connector/staffAttire/queries.gql
Normal file
7
backend/dataconnect/connector/staffAttire/queries.gql
Normal file
@@ -0,0 +1,7 @@
|
||||
query getStaffAttire($staffId: UUID!) @auth(level: USER) {
|
||||
staffAttires(where: { staffId: { eq: $staffId } }) {
|
||||
attireOptionId
|
||||
verificationStatus
|
||||
verificationPhotoUrl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user