refactor: reuse query code for both loyalty and account pages
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
||||
|
||||
query GetAccountPageBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_account_page(locale: $locale, where: { url: $url }) {
|
||||
all_page: all_account_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...AccountPageBreadcrumbs
|
||||
system {
|
||||
@@ -13,7 +13,7 @@ query GetAccountPageBreadcrumbs($locale: String!, $url: String!) {
|
||||
}
|
||||
|
||||
query GetAccountPageBreadcrumbsRefs($locale: String!, $url: String!) {
|
||||
all_account_page(locale: $locale, where: { url: $url }) {
|
||||
all_page: all_account_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...AccountPageBreadcrumbsRefs
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
||||
|
||||
query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_loyalty_page(locale: $locale, where: { url: $url }) {
|
||||
all_page: 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_loyalty_page(locale: $locale, where: { url: $url }) {
|
||||
all_page: all_loyalty_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...LoyaltyPageBreadcrumbsRefs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user