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

@@ -3,6 +3,8 @@
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/Blocks/Accordion.graphql"
query GetHotelPage($locale: String!, $uid: String!) {
hotel_page(locale: $locale, uid: $uid) {
hotel_page_id
@@ -15,24 +17,7 @@ query GetHotelPage($locale: String!, $uid: String!) {
__typename
edges {
node {
... on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...ContentPageLink
}
}
}
}
}
}
...AccordionBlock
}
}
}