feat(SW-186): implemented queries and typings for top_link inside header query
This commit is contained in:
66
lib/graphql/Query/Header.graphql
Normal file
66
lib/graphql/Query/Header.graphql
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user