#import "../../Fragments/System.graphql"

#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/StartPageLink.graphql"

#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/DestinationCityPage/Ref.graphql"
#import "../../Fragments/DestinationCountryPage/Ref.graphql"
#import "../../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/StartPage/Ref.graphql"

query GetNavigationMyPages($locale: String!) {
  all_navigation_my_pages(locale: $locale, limit: 1) {
    items {
      menu_items {
        display_sign_out_link
        links {
          link_text
          page: pageConnection {
            edges {
              node {
                __typename
                ...AccountPageLink
                ...CollectionPageLink
                ...ContentPageLink
                ...DestinationCityPageLink
                ...DestinationCountryPageLink
                ...DestinationOverviewPageLink
                ...HotelPageLink
                ...LoyaltyPageLink
                ...StartPageLink
              }
            }
          }
        }
      }
      title
    }
  }
}

query GetNavigationMyPagesRefs($locale: String!) {
  all_navigation_my_pages(locale: $locale, limit: 1) {
    items {
      menu_items {
        links {
          page: pageConnection {
            edges {
              node {
                __typename
                ...AccountPageRef
                ...CollectionPageRef
                ...ContentPageRef
                ...DestinationCityPageRef
                ...DestinationCountryPageRef
                ...DestinationOverviewPageRef
                ...HotelPageRef
                ...LoyaltyPageRef
                ...StartPageRef
              }
            }
          }
        }
      }
      system {
        ...System
      }
    }
  }
}
