chore(legacy): relocate v1 dataconnect source
This commit is contained in:
29
legacy/dataconnect-v1/connector/faqData/mutations.gql
Normal file
29
legacy/dataconnect-v1/connector/faqData/mutations.gql
Normal file
@@ -0,0 +1,29 @@
|
||||
mutation createFaqData(
|
||||
$category: String!
|
||||
$questions: [Any!]
|
||||
) @auth(level: USER) {
|
||||
faqData_insert(
|
||||
data: {
|
||||
category: $category
|
||||
questions: $questions
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateFaqData(
|
||||
$id: UUID!
|
||||
$category: String
|
||||
$questions: [Any!]
|
||||
) @auth(level: USER) {
|
||||
faqData_update(
|
||||
id: $id
|
||||
data: {
|
||||
category: $category
|
||||
questions: $questions
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteFaqData($id: UUID!) @auth(level: USER) {
|
||||
faqData_delete(id: $id)
|
||||
}
|
||||
29
legacy/dataconnect-v1/connector/faqData/queries.gql
Normal file
29
legacy/dataconnect-v1/connector/faqData/queries.gql
Normal file
@@ -0,0 +1,29 @@
|
||||
query listFaqDatas @auth(level: USER) {
|
||||
faqDatas {
|
||||
id
|
||||
category
|
||||
questions
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query getFaqDataById($id: UUID!) @auth(level: USER) {
|
||||
faqData(id: $id) {
|
||||
id
|
||||
category
|
||||
questions
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterFaqDatas($category: String) @auth(level: USER) {
|
||||
faqDatas(where: { category: { eq: $category } }) {
|
||||
id
|
||||
category
|
||||
questions
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user