Files
web/lib/graphql/Query/Header.graphql

67 lines
1.2 KiB
GraphQL

#import "../Fragments/Refs/System.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
query GetHeader($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
top_link {
is_external_link
open_in_new_tab
page_link {
link_title
linkConnection {
edges {
node {
...LoyaltyPageLink
...ContentPageLink
}
}
}
}
external_link {
href
title
}
}
}
}
}
query GetHeader2($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
top_link {
external_link {
href
title
}
is_external_link
open_in_new_tab
page_link {
link_title
linkConnection {
edges {
node {
...LoyaltyPageLink
...ContentPageLink
}
}
}
}
}
}
}
}
query GetHeaderRef($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
system {
...System
}
}
}
}