All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m22s
- 将GraphQL移至server/assets,在构建后会被写入server中 - 在server端通过storage读取数据
23 lines
420 B
GraphQL
23 lines
420 B
GraphQL
query GetProductList($locale: String!) {
|
|
products(filter: { status: { _eq: "in-production" } }) {
|
|
id
|
|
status
|
|
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
|
|
id
|
|
name
|
|
summary
|
|
}
|
|
cover {
|
|
id
|
|
}
|
|
product_type {
|
|
id
|
|
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
|
|
id
|
|
name
|
|
}
|
|
sort
|
|
}
|
|
}
|
|
}
|