feat: Integrate Data Connect and Implement Staff List View Directory

This commit is contained in:
dhinesh-m24
2026-01-31 16:54:59 +05:30
parent 48bb1c457c
commit cb25b33d04
255 changed files with 21425 additions and 109 deletions

View File

@@ -0,0 +1,34 @@
mutation createCategory(
$categoryId: String!
$label: String!
$icon: String
) @auth(level: USER) {
category_insert(
data: {
categoryId: $categoryId
label: $label
icon: $icon
}
)
}
mutation updateCategory(
$id: UUID!
$categoryId: String
$label: String
$icon: String
) @auth(level: USER) {
category_update(
id: $id
data: {
categoryId: $categoryId
label: $label
icon: $icon
}
)
}
mutation deleteCategory($id: UUID!) @auth(level: USER) {
category_delete(id: $id)
}

View File

@@ -0,0 +1,43 @@
query listCategories @auth(level: USER) {
categories {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}
query getCategoryById($id: UUID!) @auth(level: USER) {
category(id: $id) {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}
query filterCategories(
$categoryId: String
$label: String
) @auth(level: USER) {
categories(
where: {
categoryId: { eq: $categoryId }
label: { eq: $label }
}
) {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}