fix: add all pages as possible references

This commit is contained in:
Christel Westerberg
2024-12-27 09:25:38 +01:00
parent 97f11a2488
commit c42a03803c
42 changed files with 319 additions and 74 deletions

View File

@@ -2,8 +2,16 @@
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/Blocks/Accordion.graphql"
#import "../../Fragments/Blocks/Refs/Accordion.graphql"
query GetHotelPage($locale: String!, $uid: String!) {
hotel_page(locale: $locale, uid: $uid) {
@@ -23,23 +31,7 @@ query GetHotelPage($locale: String!, $uid: String!) {
}
specific_faq {
__typename
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
}
}
...GlobalAccordionBlock
}
}
content {
@@ -86,21 +78,7 @@ query GetHotelPageRefs($locale: String!, $uid: String!) {
}
}
specific_faq {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
}
}
}
}
}
...GlobalAccordionBlockRefs
}
}
content {