refactor: separate queries for loyalty and mypages

This commit is contained in:
Matilda Landström
2024-05-29 09:06:42 +02:00
parent 2dcf31e851
commit b74c904b63
7 changed files with 236 additions and 140 deletions

View File

@@ -2,7 +2,7 @@
#import "../Fragments/Refs/LoyaltyPage/Breadcrumbs.graphql"
query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
all_page: all_loyalty_page(locale: $locale, where: { url: $url }) {
all_loyalty_page(locale: $locale, where: { url: $url }) {
items {
...LoyaltyPageBreadcrumbs
system {
@@ -13,7 +13,7 @@ query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
}
query GetLoyaltyPageBreadcrumbsRefs($locale: String!, $url: String!) {
all_page: all_loyalty_page(locale: $locale, where: { url: $url }) {
all_loyalty_page(locale: $locale, where: { url: $url }) {
items {
...LoyaltyPageBreadcrumbsRefs
}