fix(SW-194): add accordion graphql request

This commit is contained in:
Matilda Landström
2024-10-02 18:35:27 +02:00
parent bdb4aacc32
commit 166ddca0e0
4 changed files with 137 additions and 0 deletions

View File

@@ -0,0 +1,122 @@
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
fragment Accordion_ContentPage on ContentPageBlocksAccordion {
__typename
accordion {
title
faq {
__typename
...GlobalFaq
...SpecificFaq
}
}
}
fragment GlobalFaq on ContentPageBlocksAccordionBlockFaqGlobalFaq {
__typename
global_faq {
global_faqConnection {
edges {
node {
... on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageLink
}
}
}
}
}
}
}
}
}
}
}
fragment SpecificFaq on ContentPageBlocksAccordionBlockFaqSpecificFaq {
__typename
specific_faq {
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageLink
}
}
}
}
}
}
}
fragment Accordion_ContentPageRefs on ContentPageBlocksAccordion {
accordion {
faq {
...GlobalFaqRefs
...SpecificFaqRefs
}
}
}
fragment GlobalFaqRefs on ContentPageBlocksAccordionBlockFaqGlobalFaq {
global_faq {
global_faqConnection {
edges {
node {
... on Accordion {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageRef
}
}
}
}
}
}
}
}
}
}
}
fragment SpecificFaqRefs on ContentPageBlocksAccordionBlockFaqSpecificFaq {
specific_faq {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageRef
}
}
}
}
}
}
}