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

This commit is contained in:
Erik Tiekstra
2024-08-26 15:31:40 +02:00
parent 1aff87f1a1
commit 99c0d7976f
4 changed files with 278 additions and 1 deletions

View File

@@ -0,0 +1,66 @@
#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
}
}
}
}