fix(SW-194): break out blocks to separate query
This commit is contained in:
@@ -23,17 +23,6 @@ query GetContentPage($locale: String!, $uid: String!) {
|
||||
preamble
|
||||
...NavigationLinks
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPage
|
||||
...CardsGrid_ContentPage
|
||||
...Content_ContentPage
|
||||
...DynamicContent_ContentPage
|
||||
...Shortcuts_ContentPage
|
||||
...Table_ContentPage
|
||||
...TextCols_ContentPage
|
||||
...UspGrid_ContentPage
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_ContentPage
|
||||
@@ -52,6 +41,7 @@ query GetContentPageBlocks($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPage
|
||||
...CardsGrid_ContentPage
|
||||
...Content_ContentPage
|
||||
...DynamicContent_ContentPage
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user