feat(WEB-209): revalidate my pages navigation on demand
This commit is contained in:
committed by
Michael Zetterberg
parent
16634abbbf
commit
1bffbc837e
@@ -3,11 +3,10 @@
|
||||
query GetMyPagesBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_account_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...Breadcrumbs
|
||||
...MyPagesBreadcrumbs
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
total
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
#import "../Fragments/Refs/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetNavigationMyPages($locale: String!) {
|
||||
all_navigation_my_pages(locale: $locale) {
|
||||
all_navigation_my_pages(locale: $locale, limit: 1) {
|
||||
items {
|
||||
items {
|
||||
... on NavigationMyPagesItemsItem {
|
||||
@@ -20,8 +24,8 @@ query GetNavigationMyPages($locale: String!) {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...ContentPageLink
|
||||
...LoyaltyPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,8 +37,8 @@ query GetNavigationMyPages($locale: String!) {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...ContentPageLink
|
||||
...LoyaltyPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,3 +49,47 @@ query GetNavigationMyPages($locale: String!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetNavigationMyPagesRefs($locale: String!) {
|
||||
all_navigation_my_pages(locale: $locale, limit: 1) {
|
||||
items {
|
||||
items {
|
||||
... on NavigationMyPagesItemsItem {
|
||||
__typename
|
||||
item {
|
||||
sub_items {
|
||||
... on NavigationMyPagesItemsItemBlockSubItemsItem {
|
||||
__typename
|
||||
item {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...ContentPageRef
|
||||
...LoyaltyPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...ContentPageRef
|
||||
...LoyaltyPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user