Files
web/lib/graphql/Fragments/Blocks/Accordion.graphql
2024-10-16 13:55:05 +02:00

124 lines
2.3 KiB
GraphQL

#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"
#import "./Refs/Accordion.graphql"
fragment AccordionBlock on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
}
}
}
fragment Accordion_ContentPage on ContentPageBlocksAccordion {
__typename
accordion {
title
faq {
__typename
...GlobalFaq
...SpecificFaq
}
}
}
fragment GlobalFaq on ContentPageBlocksAccordionBlockFaqGlobalFaq {
__typename
global_faq {
global_faqConnection {
edges {
node {
...AccordionBlock
}
}
}
}
}
fragment SpecificFaq on ContentPageBlocksAccordionBlockFaqSpecificFaq {
__typename
specific_faq {
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
}
}
}
}
fragment Accordion_ContentPageRefs on ContentPageBlocksAccordion {
accordion {
faq {
__typename
...GlobalFaqRefs
...SpecificFaqRefs
}
}
}
fragment GlobalFaqRefs on ContentPageBlocksAccordionBlockFaqGlobalFaq {
global_faq {
global_faqConnection {
edges {
node {
...AccordionBlockRefs
}
}
}
}
}
fragment SpecificFaqRefs on ContentPageBlocksAccordionBlockFaqSpecificFaq {
specific_faq {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
}
}
}
}
}
}
}