feat: 相关问题查询添加问题类型查询

- 查询语句更改:添加type字段
- mapper增添:添加type字段的mapper
- 视图模型更改:QuestionListView添加type字段
This commit is contained in:
2025-12-03 15:53:20 +08:00
parent c82fea48b8
commit f4ec82a150
4 changed files with 110 additions and 1 deletions

View File

@ -1,6 +1,13 @@
query GetQuestionList($locale: String!) {
questions(filter: { status: { _eq: "published" } }) {
id
type {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
}
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title