- graphQL查询修改:添加type字段查询 - 视图模型字段更新:添加DocumentTypeView视图模型并为DocumentList类型添加type字段 - mapper更新: 添加DocumentType的转换方法
39 lines
778 B
GraphQL
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|