fix(SW-194): break out blocks to separate query

This commit is contained in:
Matilda Landström
2024-10-09 11:44:21 +02:00
parent 14f07bc2bf
commit 04f1a146f4
5 changed files with 46 additions and 65 deletions

View File

@@ -8,6 +8,27 @@
#import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "./Refs/Accordion.graphql"
fragment AccordionBlock on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageLink
}
}
}
}
}
}
fragment Accordion_ContentPage on ContentPageBlocksAccordion {
__typename
accordion {
@@ -26,24 +47,7 @@ fragment GlobalFaq on ContentPageBlocksAccordionBlockFaqGlobalFaq {
global_faqConnection {
edges {
node {
... on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageLink
}
}
}
}
}
}
...AccordionBlock
}
}
}
@@ -85,20 +89,7 @@ fragment GlobalFaqRefs on ContentPageBlocksAccordionBlockFaqGlobalFaq {
global_faqConnection {
edges {
node {
... on Accordion {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageRef
}
}
}
}
}
}
...AccordionBlockRefs
}
}
}