feat(SW-186): implemented queries and typings for menu inside header query
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user