feat(SW-186): implemented queries and typings for menu inside header query

This commit is contained in:
Erik Tiekstra
2024-08-27 12:44:50 +02:00
parent 99c0d7976f
commit d5aa2c9415
6 changed files with 130 additions and 50 deletions

View File

@@ -1,53 +1,25 @@
#import "../Fragments/Refs/System.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../Fragments/Header/InternalOrExternalLink.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
}
...InternalOrExternalLink
}
}
}
}
query GetHeader2($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
top_link {
external_link {
href
title
menu_items {
title
link {
...InternalOrExternalLink
}
is_external_link
open_in_new_tab
page_link {
link_title
linkConnection {
edges {
node {
...LoyaltyPageLink
...ContentPageLink
}
}
see_all_link {
...InternalOrExternalLink
}
submenu {
title
links {
...InternalOrExternalLink
}
}
}