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

@@ -1,8 +1,16 @@
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/AccountPageLink.graphql"
fragment NavigationLinks on ContentPageHeader {
#import "../ContentPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../AccountPage/Ref.graphql"
fragment NavigationLinks_ContentPage on ContentPageHeader {
navigation_links {
title
linkConnection {
@@ -12,6 +20,25 @@ fragment NavigationLinks on ContentPageHeader {
...HotelPageLink
...ContentPageLink
...LoyaltyPageLink
...CollectionPageLink
...AccountPageLink
}
}
}
}
}
fragment NavigationLinksRef_ContentPage on ContentPageHeader {
navigation_links {
linkConnection {
edges {
node {
__typename
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...CollectionPageRef
...AccountPageRef
}
}
}