Files
web/lib/graphql/Query/Header.graphql
2024-09-06 09:00:07 +02:00

79 lines
1.6 KiB
GraphQL

#import "../Fragments/Refs/System.graphql"
#import "../Fragments/Header/InternalOrExternalLink.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../Fragments/PageLink/AccountPageLink.graphql"
#import "../Fragments/Blocks/Card.graphql"
query GetHeader($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
top_link {
title
linkConnection {
edges {
node {
...ContentPageLink
...LoyaltyPageLink
}
}
}
}
menu_items {
title
linkConnection {
edges {
node {
...ContentPageLink
...LoyaltyPageLink
}
}
}
see_all_link {
title
linkConnection {
edges {
node {
...ContentPageLink
...LoyaltyPageLink
}
}
}
}
submenu {
title
links {
title
linkConnection {
edges {
node {
...ContentPageLink
...LoyaltyPageLink
}
}
}
}
}
cardConnection {
edges {
node {
...CardBlock
}
}
}
}
}
}
}
query GetHeaderRef($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
system {
...System
}
}
}
}