fix: 修正无法正常读取GraphQL的问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m22s

- 将GraphQL移至server/assets,在构建后会被写入server中
- 在server端通过storage读取数据
This commit is contained in:
2025-11-12 19:49:17 +08:00
parent 5ee6005ad1
commit 50f0779a8e
19 changed files with 90 additions and 39 deletions

View File

@ -0,0 +1,31 @@
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
}
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
}
}
}
}
}
}