From 1290189d8444970cedab9fddf271049ac83aba88 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 11 Nov 2025 16:01:20 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96graphql?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/graphql/product.graphql | 125 ++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 63 deletions(-) diff --git a/app/graphql/product.graphql b/app/graphql/product.graphql index 5965746..d4493c2 100644 --- a/app/graphql/product.graphql +++ b/app/graphql/product.graphql @@ -1,66 +1,65 @@ query GetProduct($id: ID!, $locale: String!) { - products_by_id(id: $id) { - id - status - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - name - summary - description - } - images { - id - product_images_id { - id - image { - id - } - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - caption - } - } - } - specs { - id - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - name - } - specs { - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - key - value - } - } - } - faqs { - id - questions_id { - id - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - title - content - } - } - } - documents { - id - product_documents_id { - id - file { - id - filesize - filename_download - } - translations(filter: { languages_code: { code: { _eq: $locale } } }) { - id - title - } - } - } + products_by_id(id: $id) { + id + status + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + name + summary + description } + images { + id + product_images_id { + id + image { + id + } + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + caption + } + } + } + specs { + id + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + name + } + specs { + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + key + value + } + } + } + faqs { + id + questions_id { + id + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + title + content + } + } + } + documents { + id + product_documents_id { + id + file { + id + filesize + filename_download + } + translations(filter: { languages_code: { code: { _eq: $locale } } }) { + id + title + } + } + } + } } -