#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/System.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
                ...ContentPageLink
                ...LoyaltyPageLink
              }
            }
          }
        }
      }
      title
    }
  }
}

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