Files
jinshen-website/server/assets/graphql/documentList.graphql
R2m1liA c27337a145 feat: 文档库查询添加文档类型字段
- graphQL查询修改:添加type字段查询
- 视图模型字段更新:添加DocumentTypeView视图模型并为DocumentList类型添加type字段
- mapper更新: 添加DocumentType的转换方法
2025-12-03 17:30:16 +08:00

39 lines
778 B
GraphQL

query GetDocumentList($locale: String!) {
product_documents(filter: { status: { _eq: "published" } }) {
id
file {
id
filesize
filename_download
}
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title
}
type {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
}
products {
id
products_id {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
product_type {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
}
}
}
}
}