From 3bf8f256f9d88bfa862b1d489ff596b488e9f3da Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Fri, 27 Oct 2023 16:29:33 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Missing=20accordions=20in=20groq?= =?UTF-8?q?=20#1864?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/IndexSanityContent/magazine/sanity.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/search/IndexSanityContent/magazine/sanity.ts b/search/IndexSanityContent/magazine/sanity.ts index b9fbe28bf..676c62371 100644 --- a/search/IndexSanityContent/magazine/sanity.ts +++ b/search/IndexSanityContent/magazine/sanity.ts @@ -39,7 +39,12 @@ export const query = /* groq */ `*[_type == "magazine" && _lang == $lang && !(_i "accordions": content[_type == "accordion"] { "_key": _key, "title": pt::text(title), - "ingress": pt::text(ingress) + "ingress": pt::text(ingress), + "accordionItems":accordion[]{ + "id": _key, + title, + "content": pt::text(content) + } }, "magazineTags": magazineTags[]->.title[$lang], "heroFigure": select(