Files
jinshen-website/server/assets/graphql/homepage.graphql
R2m1liA 50f0779a8e
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m22s
fix: 修正无法正常读取GraphQL的问题
- 将GraphQL移至server/assets,在构建后会被写入server中
- 在server端通过storage读取数据
2025-11-12 19:49:17 +08:00

34 lines
537 B
GraphQL

query GetHomepage($locale: String!) {
homepage {
id
carousel {
id
directus_files_id {
id
}
}
recommend_products {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
summary
}
cover {
id
}
}
recommend_solutions {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title
summary
}
cover {
id
}
}
}
}