fix(SW-190): added cache for content page query and added breadcrumbs fetching for content page
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#import "../Fragments/MyPages/AccountPage/AccountPageContentTextContent.graphql"
|
||||
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
|
||||
21
lib/graphql/Query/BreadcrumbsContentPage.graphql
Normal file
21
lib/graphql/Query/BreadcrumbsContentPage.graphql
Normal file
@@ -0,0 +1,21 @@
|
||||
#import "../Fragments/ContentPage/Breadcrumbs.graphql"
|
||||
#import "../Fragments/Refs/ContentPage/Breadcrumbs.graphql"
|
||||
|
||||
query GetContentPageBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_content_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...ContentPageBreadcrumbs
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetContentPageBreadcrumbsRefs($locale: String!, $url: String!) {
|
||||
all_content_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...ContentPageBreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
#import "../Fragments/ContentPage/Breadcrumbs.graphql"
|
||||
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
title
|
||||
@@ -8,7 +6,6 @@ query GetContentPage($locale: String!, $uid: String!) {
|
||||
preamble
|
||||
}
|
||||
hero_image
|
||||
...ContentPageBreadcrumbs
|
||||
system {
|
||||
uid
|
||||
created_at
|
||||
|
||||
@@ -5,13 +5,12 @@
|
||||
#import "../Fragments/Blocks/Refs/Card.graphql"
|
||||
#import "../Fragments/Blocks/Refs/LoyaltyCard.graphql"
|
||||
|
||||
#import "../Fragments/LoyaltyPage/Breadcrumbs.graphql"
|
||||
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
@@ -169,7 +168,6 @@ query GetLoyaltyPage($locale: String!, $uid: String!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
...LoyaltyPageBreadcrumbs
|
||||
system {
|
||||
uid
|
||||
created_at
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user